Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- get rid of shell provisioner - no python symlinking - split up ansible playbook into tasks - improve network and pf setup
- Loading branch information
Showing
9 changed files
with
62 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
# Variables listed here are applicable to all host groups. | ||
|
||
ansible_python_interpreter: /usr/local/bin/python2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
- name: update packages | ||
command: "pkg update" | ||
|
||
- name: upgrade pkg | ||
command: "pkg install -f -y pkg" | ||
|
||
- name: ensure dependencies are installed. | ||
pkgng: name={{item}} state=present cached=no | ||
with_items: | ||
- git | ||
- lang/go | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: cloned interface lo1 | ||
action: command sysrc cloned_interfaces=lo1 | ||
|
||
- name: ipv4 addresses for lo1 | ||
action: command sysrc ipv4_addrs_lo1=172.23.0.1/16 | ||
|
||
- name: start lo1 | ||
action: command service netif start lo1 | ||
register: command_result | ||
failed_when: "'172.23.0.1' not in command_result.stdout" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
- name: enable pf | ||
action: command sysrc pf_enable=YES | ||
|
||
- name: copy pf.conf | ||
copy: src=etc/pf.conf dest="/etc/pf.conf" | ||
notify: | ||
- restart pf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
- hosts: default | ||
tasks: | ||
- include: tasks/dependencies.yml # install git & go | ||
- include: tasks/networking.yml # setup and start lo1 | ||
- include: tasks/pf.yml # configure and start firewall | ||
|
||
- name: build & install Jetpack | ||
command: "{{ item }} PREFIX=/usr/local" | ||
args: | ||
chdir: "/vagrant" | ||
with_items: | ||
- "make" | ||
- "make install" | ||
|
||
- name: init Jetpack | ||
command: "jetpack init" | ||
ignore_errors: yes | ||
|
||
handlers: | ||
- name: restart pf | ||
service: name=pf state=restarted |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.