Skip to content

Commit 62480b2

Browse files
author
ce-dev
committed
GitHub Actions - Thu Jan 9 15:50:29 UTC 2025
1 parent aefd9bc commit 62480b2

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

2.x/index.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<link>https://codeenigma.github.io/ce-provision-docs/2.x/roles/_init/</link>
4141
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
4242
<guid>https://codeenigma.github.io/ce-provision-docs/2.x/roles/_init/</guid>
43-
<description>Init role This is meant to ALWAYS be included as the first task of a play. If you include this role, as you will in the vast majority of cases, be sure to also include the _exit role as the last task of the play.&#xA;Default variables --- # Set this variable to true to tell ce-provision it is running in a container. is_local: false _ce_provision_username: &amp;#34;{% if is_local %}ce-dev{% else %}controller{% endif %}&amp;#34; _venv_path: &amp;#34;/home/{{ _ce_provision_username }}/ce-python&amp;#34; _venv_command: /usr/bin/python3 -m venv _venv_install_username: &amp;#34;{{ _ce_provision_username }}&amp;#34; _ce_ansible_timer_name: upgrade_ansible # AWS variables - if you are using an AWS account, you can preset certain variables # Generally it is recommended to place these in your ce-provision-config repository under hosts/group_vars/all #_aws_profile: example # boto profile name #_aws_region: eu-west-1 _init: # A list of var directories to include.</description>
43+
<description>Init role This is meant to ALWAYS be included as the first task of a play. If you include this role, as you will in the vast majority of cases, be sure to also include the _exit role as the last task of the play.&#xA;Default variables --- # Set this variable to true to tell ce-provision it is running in a container. is_local: false _ce_provision_username: &amp;#34;{% if is_local %}ce-dev{% else %}controller{% endif %}&amp;#34; _venv_path: &amp;#34;/home/{{ _ce_provision_username }}/ce-python&amp;#34; _venv_command: /usr/bin/python3 -m venv _venv_install_username: &amp;#34;{{ _ce_provision_username }}&amp;#34; _ce_ansible_timer_name: upgrade_ansible # AWS variables - if you are using an AWS account, you can preset certain variables # Generally it is recommended to place these in your ce-provision-config repository under hosts/group_vars/all #_aws_profile: example # boto profile name #_aws_region: eu-west-1 # AWS tags _aws_resource_name: &amp;#34;&amp;#34; # Name # _profile: web_server # Profile # _env_type: dev # Env # _infra_name: acme # Infra _init: # A list of var directories to include.</description>
4444
</item>
4545
<item>
4646
<title></title>

2.x/roles/_init/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ <h2 id="default-variables">Default variables</h2>
2828
</span></span><span style="display:flex;"><span><span style="color:#75715e">#_aws_profile: example # boto profile name</span>
2929
</span></span><span style="display:flex;"><span><span style="color:#75715e">#_aws_region: eu-west-1</span>
3030
</span></span><span style="display:flex;"><span>
31+
</span></span><span style="display:flex;"><span><span style="color:#75715e"># AWS tags</span>
32+
</span></span><span style="display:flex;"><span><span style="color:#f92672">_aws_resource_name</span>: <span style="color:#e6db74">&#34;&#34;</span> <span style="color:#75715e"># Name</span>
33+
</span></span><span style="display:flex;"><span><span style="color:#75715e"># _profile: web_server # Profile</span>
34+
</span></span><span style="display:flex;"><span><span style="color:#75715e"># _env_type: dev # Env</span>
35+
</span></span><span style="display:flex;"><span><span style="color:#75715e"># _infra_name: acme # Infra</span>
36+
</span></span><span style="display:flex;"><span>
3137
</span></span><span style="display:flex;"><span><span style="color:#f92672">_init</span>:
3238
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># A list of var directories to include. We only support .yml extensions.</span>
3339
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># This is used to detect if the playbook must re-run or not.</span>

2.x/roles/debian/firewall_config/index.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ <h2 id="default-variables">Default variables</h2>
5656
</span></span><span style="display:flex;"><span> <span style="color:#f92672">rulesets</span>:
5757
</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">ssh_open</span>
5858
</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">web_open</span>
59+
</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">common_network</span> <span style="color:#75715e"># rule always needs to be last so the DROP rules in the OUTPUT chain get applied at the end</span>
5960
</span></span><span style="display:flex;"><span>
6061
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Ruleset definitions</span>
6162
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Permitted rule lists</span>
@@ -86,6 +87,29 @@ <h2 id="default-variables">Default variables</h2>
8687
</span></span><span style="display:flex;"><span> <span style="color:#f92672">letsencrypt</span>:
8788
</span></span><span style="display:flex;"><span> <span style="color:#f92672">firewall_allowed_tcp_ports</span>:
8889
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;80&#34;</span>
90+
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Standard ports for Prometheus outbound rules to allow scraping of exporters</span>
91+
</span></span><span style="display:flex;"><span> <span style="color:#f92672">prometheus_server_scraping</span>:
92+
</span></span><span style="display:flex;"><span> <span style="color:#f92672">firewall_additional_rules</span>:
93+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p tcp --dport 9100 -j ACCEPT&#34;</span> <span style="color:#75715e"># allow scraping node exporter</span>
94+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p tcp --dport 9101 -j ACCEPT&#34;</span> <span style="color:#75715e"># allow scraping process exporter</span>
95+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p tcp --dport 9093 -j ACCEPT&#34;</span> <span style="color:#75715e"># allow posting to alertmanager</span>
96+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p tcp --dport 9115 -j ACCEPT&#34;</span> <span style="color:#75715e"># allow scraping blackbox exporter</span>
97+
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Commonly required outbound ports for PHP web servers</span>
98+
</span></span><span style="display:flex;"><span> <span style="color:#f92672">common_web</span>:
99+
</span></span><span style="display:flex;"><span> <span style="color:#f92672">firewall_additional_rules</span>:
100+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p tcp --dport 2049 -j ACCEPT&#34;</span> <span style="color:#75715e"># allow NFS</span>
101+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p udp --dport 2049 -j ACCEPT&#34;</span> <span style="color:#75715e"># allow NFS</span>
102+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p tcp --dport 3306 -j ACCEPT&#34;</span> <span style="color:#75715e"># allow MySQL</span>
103+
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Recommended general firewall settings</span>
104+
</span></span><span style="display:flex;"><span> <span style="color:#f92672">common_network</span>:
105+
</span></span><span style="display:flex;"><span> <span style="color:#f92672">firewall_additional_rules</span>:
106+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A INPUT -p icmp --icmp-type 8 -s 0/0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&#34;</span> <span style="color:#75715e"># ICMP ping in</span>
107+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A INPUT -p icmp --icmp-type 128 -s 0/0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&#34;</span> <span style="color:#75715e"># ICMP ping in</span>
108+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p icmp --icmp-type 0 -d 0/0 -m state --state ESTABLISHED,RELATED -j ACCEPT&#34;</span> <span style="color:#75715e"># ICMP ping out</span>
109+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT&#34;</span> <span style="color:#75715e"># established connections out</span>
110+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -o lo -j ACCEPT&#34;</span> <span style="color:#75715e"># allow all local traffic</span>
111+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p tcp --dport 1025:65535 -j DROP&#34;</span> <span style="color:#75715e"># block high port tcp traffic outbound</span>
112+
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;iptables -A OUTPUT -p udp --dport 1025:65535 -j DROP&#34;</span> <span style="color:#75715e"># block high port udp traffic outbound</span>
89113
</span></span><span style="display:flex;"><span> <span style="color:#f92672">ossec</span>:
90114
</span></span><span style="display:flex;"><span> <span style="color:#f92672">firewall_allowed_udp_ports</span>:
91115
</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">&#34;1514&#34;</span>

2.x/roles/index.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<link>https://codeenigma.github.io/ce-provision-docs/2.x/roles/_init/</link>
1313
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
1414
<guid>https://codeenigma.github.io/ce-provision-docs/2.x/roles/_init/</guid>
15-
<description>Init role This is meant to ALWAYS be included as the first task of a play. If you include this role, as you will in the vast majority of cases, be sure to also include the _exit role as the last task of the play.&#xA;Default variables --- # Set this variable to true to tell ce-provision it is running in a container. is_local: false _ce_provision_username: &amp;#34;{% if is_local %}ce-dev{% else %}controller{% endif %}&amp;#34; _venv_path: &amp;#34;/home/{{ _ce_provision_username }}/ce-python&amp;#34; _venv_command: /usr/bin/python3 -m venv _venv_install_username: &amp;#34;{{ _ce_provision_username }}&amp;#34; _ce_ansible_timer_name: upgrade_ansible # AWS variables - if you are using an AWS account, you can preset certain variables # Generally it is recommended to place these in your ce-provision-config repository under hosts/group_vars/all #_aws_profile: example # boto profile name #_aws_region: eu-west-1 _init: # A list of var directories to include.</description>
15+
<description>Init role This is meant to ALWAYS be included as the first task of a play. If you include this role, as you will in the vast majority of cases, be sure to also include the _exit role as the last task of the play.&#xA;Default variables --- # Set this variable to true to tell ce-provision it is running in a container. is_local: false _ce_provision_username: &amp;#34;{% if is_local %}ce-dev{% else %}controller{% endif %}&amp;#34; _venv_path: &amp;#34;/home/{{ _ce_provision_username }}/ce-python&amp;#34; _venv_command: /usr/bin/python3 -m venv _venv_install_username: &amp;#34;{{ _ce_provision_username }}&amp;#34; _ce_ansible_timer_name: upgrade_ansible # AWS variables - if you are using an AWS account, you can preset certain variables # Generally it is recommended to place these in your ce-provision-config repository under hosts/group_vars/all #_aws_profile: example # boto profile name #_aws_region: eu-west-1 # AWS tags _aws_resource_name: &amp;#34;&amp;#34; # Name # _profile: web_server # Profile # _env_type: dev # Env # _infra_name: acme # Infra _init: # A list of var directories to include.</description>
1616
</item>
1717
<item>
1818
<title></title>

0 commit comments

Comments
 (0)