-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Spec file With python2 purged most packages were renamed or removed from repos. This addresses those name changes. * Delete rockctl.j2 Remove old control script that is no longer mantained * Update local services var The data structure of the rock_services var was changed to allow additional configuration options. This should now populate this task correctly * Update rock.spec * Update local_services based on new data structure * Update Roles with new installed, enabled, and rock_services vars
- Loading branch information
1 parent
e631237
commit 9faf12d
Showing
22 changed files
with
55 additions
and
56 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
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
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
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
mode: 0644 | ||
owner: root | ||
group: root | ||
when: "local_services | selectattr('name', 'equalto', 'kibana') | map(attribute='installed') | bool" | ||
when: "'kibana' in installed_services" | ||
loop: | ||
- 10-rock-auth.conf | ||
- 10-tls.conf | ||
|
@@ -41,19 +41,19 @@ | |
name: httpd_can_network_connect | ||
state: true | ||
persistent: true | ||
when: "local_services | selectattr('name', 'equalto', 'kibana') | map(attribute='installed') | bool" | ||
when: "'kibana' in installed_services" | ||
|
||
- name: Generate sensor private key | ||
openssl_privatekey: | ||
path: "{{ http_tls_key }}" | ||
when: "local_services | selectattr('name', 'equalto', 'kibana') | map(attribute='installed') | bool" | ||
when: "'kibana' in installed_services" | ||
notify: Enable and restart lighttpd | ||
|
||
- name: Generate sensor public key | ||
openssl_publickey: | ||
path: "{{ http_tls_pub }}" | ||
privatekey_path: "{{ http_tls_key }}" | ||
when: "local_services | selectattr('name', 'equalto', 'kibana') | map(attribute='installed') | bool" | ||
when: "'kibana' in installed_services" | ||
notify: Enable and restart lighttpd | ||
|
||
- name: Generate sensor CSR | ||
|
@@ -67,7 +67,7 @@ | |
organizational_unit_name: NSM Ninjas | ||
email_address: [email protected] | ||
common_name: "{{ ansible_hostname }}" | ||
when: "local_services | selectattr('name', 'equalto', 'kibana') | map(attribute='installed') | bool" | ||
when: "'kibana' in installed_services" | ||
notify: Enable and restart lighttpd | ||
|
||
- name: Generate sensor certificate | ||
|
@@ -76,22 +76,23 @@ | |
privatekey_path: "{{ http_tls_key }}" | ||
csr_path: "{{ http_tls_pub }}.csr" | ||
provider: selfsigned | ||
when: "local_services | selectattr('name', 'equalto', 'kibana') | map(attribute='installed') | bool" | ||
when: "'kibana' in installed_services" | ||
notify: Enable and restart lighttpd | ||
|
||
- name: Combine sensor cert and key | ||
shell: > | ||
cat {{ http_tls_key }} {{ http_tls_crt }} > {{ http_tls_combined }} | ||
args: | ||
creates: "{{ http_tls_combined }}" | ||
when: "'kibana' in installed_services" | ||
notify: Enable and restart lighttpd | ||
|
||
- name: Generate DH parameters | ||
command: > | ||
openssl dhparam -out {{ http_tls_dhparams }} 2048 | ||
args: | ||
creates: "{{ http_tls_dhparams }}" | ||
when: "local_services | selectattr('name', 'equalto', 'kibana') | map(attribute='installed') | list | bool" | ||
when: "'kibana' in installed_services" | ||
notify: Enable and restart lighttpd | ||
|
||
- name: Configure firewall ports | ||
|
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
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
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