Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sumit Khanna
committed
Jul 9, 2018
1 parent
b5b22e0
commit 3f0409d
Showing
12 changed files
with
61 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
roles: | ||
- root-password | ||
- private-net | ||
- firewall | ||
- openbsd-basic | ||
- openbsd-email | ||
- openbsd-email | ||
- ipv6 | ||
- firewall |
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,2 @@ | ||
- name: run netstart | ||
command: sh /etc/netstart |
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,17 @@ | ||
--- | ||
# - name: FreeBSD IPv6 | ||
# block: | ||
# - set_fact: private_eth=vtnet1 | ||
# - include_tasks: freebsd.yml | ||
# when: ansible_distribution == 'FreeBSD' | ||
- name: Load State for IPv6 | ||
include_vars: | ||
file: "{{ provisioner_state_file }}" | ||
name: state | ||
|
||
- name: OpenBSD IPv6 | ||
lineinfile: | ||
dest: /etc/hostname.vio0 | ||
regexp: ^inet6 alias" | ||
line: "inet6 alias {{ ipv6_alias }} 64" | ||
notify: run netstart |
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,2 @@ | ||
provisioner_state_file: "../{{ provisioner.state_file }}" | ||
ipv6_alias: "{{ state.servers[ansible_hostname].ipv6.addr }}" |
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
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
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
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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
--- | ||
- name: Setup assassin | ||
template: src=spamassassin-local.cf.j2 dest=/etc/mail/spamassassin/local.cf | ||
|
||
- name: Setup RC Flags for spampd | ||
lineinfile: | ||
dest: /etc/rc.conf.local | ||
regexp: ^spampd_flags | ||
line: "spampd_flags=\"--port={{ ports.spampd_in }} --relayhost=127.0.0.1:{{ ports.spampd_return }} --tagall -aw\"" | ||
create: Yes | ||
- name: Custom SpamPD RC Script | ||
template: src=spampd_custom.j2 dest=/etc/rc.d/spampd_custom mode=0755 | ||
notify: Reload spampd |
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
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,7 @@ | ||
#!/bin/ksh | ||
|
||
daemon="/usr/local/sbin/spampd --port={{ ports.spampd_in }} --relayhost=127.0.0.1:{{ ports.spampd_return }} --tagall -aw" | ||
|
||
. /etc/rc.d/rc.subr | ||
|
||
rc_cmd $1 |
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
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