Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
virtual-homelab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
shore
virtual-homelab
Commits
df6cfd84
Commit
df6cfd84
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Merged OpenBSD bootstraping to the common role.
parent
c20b4ee5
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Vagrantfile
+1
-2
1 addition, 2 deletions
Vagrantfile
host_vars/openbsd
+1
-0
1 addition, 0 deletions
host_vars/openbsd
openbsd-bootstrap.yml
+0
-36
0 additions, 36 deletions
openbsd-bootstrap.yml
site.yml
+1
-0
1 addition, 0 deletions
site.yml
with
3 additions
and
38 deletions
Vagrantfile
+
1
−
2
View file @
df6cfd84
...
...
@@ -16,10 +16,9 @@ Vagrant.configure(2) do |config|
end
config
.
vm
.
define
"openbsd"
do
|
openbsd
|
openbsd
.
vm
.
hostname
=
"openbsd.Ansible.vagrant"
openbsd
.
vm
.
box
=
"tmatilai/openbsd-5.7"
#openbsd.vm.box = "twingly/openbsd-5.7-amd64"
openbsd
.
vm
.
network
"forwarded_port"
,
guest:
443
,
host:
8000
openbsd
.
vm
.
network
"forwarded_port"
,
guest:
80
,
host:
8001
end
config
.
vm
.
define
"kodi"
do
|
kodi
|
...
...
This diff is collapsed.
Click to expand it.
host_vars/openbsd
0 → 100644
+
1
−
0
View file @
df6cfd84
openbsd_bootstrap: True
This diff is collapsed.
Click to expand it.
openbsd-bootstrap.yml
deleted
100644 → 0
+
0
−
36
View file @
c20b4ee5
---
# Bootstrap an OpenBSD machine to be able to run Ansible on it.
-
hosts
:
-
openbsd
vars
:
ansible_python_interpreter
:
/usr/local/bin/python2.7
pkg_mirror
:
http://www.mirrorservice.org/pub
tasks
:
-
name
:
Install Python
raw
:
"
PKG_PATH={{
pkg_mirror
}}/OpenBSD/$(uname
-r)/packages/$(arch
-s)/
/usr/sbin/pkg_add
py-pip"
register
:
pkg_add_python
changed_when
:
"
'python'
in
pkg_add_python.stdout"
-
name
:
Symlink python
file
:
path
:
/usr/bin/python
src
:
/usr/local/bin/python2.7
state
:
link
force
:
yes
-
name
:
Gather facts
setup
:
-
name
:
Configure pkg
lineinfile
:
dest
:
/etc/pkg.conf
line
:
'
installpath
=
{{
pkg_mirror
}}/OpenBSD/{{
ansible_distribution_release
}}/packages/{{
ansible_architecture
}}/'
regexp
:
'
^installpath
='
state
:
present
create
:
yes
-
name
:
Install Bash
openbsd_pkg
:
name
:
bash
state
:
latest
This diff is collapsed.
Click to expand it.
site.yml
+
1
−
0
View file @
df6cfd84
---
-
hosts
:
-
all
gather_facts
:
'
{{
openbsd_bootstrap
is
defined
}}'
roles
:
-
common
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment