-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #322 from brucellino/master
Fixing minor issues with ARGUS role. WIP
- Loading branch information
Showing
9 changed files
with
94 additions
and
35 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
15 changes: 15 additions & 0 deletions
15
Ansible/roles/argus/files/etc/argus/pap/pap_configuration.ini
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,15 @@ | ||
# See http://wiki.nikhef.nl/grid/Argus_Global_Banning_Setup_Overview#NGI_Argus | ||
[paps] | ||
centralbanning.type = remote | ||
centralbanning.enabled = true | ||
centralbanning.dn = /DC=ch/DC=cern/OU=computers/CN=argus.cern.ch | ||
centralbanning.hostname = lcg-argus.cern.ch | ||
centralbanning.port = 8150 | ||
centralbanning.path = /pap/services/ | ||
centralbanning.protocol = https | ||
centralbanning.public = true | ||
|
||
[paps:properties] | ||
poll_interval = 3600 # polling time in seconds. | ||
ordering = centralbanning | ||
ordering = default |
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,12 @@ | ||
--- | ||
# ARGUS NGI configuration | ||
- name: put the central banning config file in place | ||
become: true | ||
copy: | ||
src: etc/argus/pap/pap_configuration.ini | ||
dest: /etc/argus/pap/pap_configuration.ini | ||
|
||
- name: restart pap | ||
become: true | ||
command: pap-admin refresh-cache | ||
#when: |
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,2 +1,3 @@ | ||
- include: install.yml | ||
- include: configure.yml | ||
#- include: firewall.yml |
50 changes: 25 additions & 25 deletions
50
Ansible/roles/certificates/files/etc/grid-security/hostcert.pem-argus.c4.csir.co.za
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,26 +1,26 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIEcjCCA1qgAwIBAgICeUAwDQYJKoZIhvcNAQELBQAwLjELMAkGA1UEBhMCSVQx | ||
DTALBgNVBAoTBElORk4xEDAOBgNVBAMTB0lORk4gQ0EwHhcNMTQwODA4MTIzODE4 | ||
WhcNMTUwODA4MTIzODE4WjBdMQswCQYDVQQGEwJJVDENMAsGA1UEChMESU5GTjEN | ||
MAsGA1UECxMESG9zdDESMBAGA1UEBxMJWkEtTUVSQUtBMRwwGgYDVQQDExNhcmd1 | ||
cy5jNC5jc2lyLmNvLnphMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA | ||
7dSMtIovuMNZNEcdRM/1W51578B4Glvznih/c15OOQxmBtvnkHgbJIN2BSoNeOAL | ||
JlinRzZum6cwp7b8ozxlKJ7ink52Xc/rSlYmYrgpgHRu5ktlAlB5mj5So3uVhDNi | ||
+mYIw2nTSDiCJIRQQZAQXCaTypbgHcSOKQSNNuY7bl+6wvV3gPYCQozm1HNAsp6Q | ||
BKjcJvvA/1MqZT5FIray7KljcHCxDpgPM/kaUISxxEalYmtx6BLK711SBcMpse+n | ||
gg0dYgySuWyPDouTDo8aoqDkDkb6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Aw | ||
MgYDVR0RBCswKYITYXJndXMuYzQuY3Npci5jby56YYESYmJlY2tlckBjc2lyLmNv | ||
LnphMA0GCSqGSIb3DQEBCwUAA4IBAQCCl5se3S3x52TFokUC0in7UDAlwOCAU6W2 | ||
P0YupLvcMsHnmsiVNO7NEtuiiZARltP189+u8G4ZqT8BUPS+mdtBzf5on8QzeFvR | ||
UhadGZtB3M904F/Qv6F7lsDyHQi7GOnzbpD7buT/XWGHuSGBquIV5ALDYgbDLHke | ||
h8oU2rrUrcr85SyNBnevNu5QpuIHDf+yoAL4ThxZTMR3J7JcfUzHoJ3SK/N1bLtG | ||
p6fTYAqSM8J0FonCYh3scsop+Ywhf7FKvtd2NAw0HO5fs9AfvGVfJDoyioH2JmxY | ||
TCBXADP8mWgdeGWpEEhIi+maRRuhhLnOzYEdMKYcR0vTIj/lmFYc | ||
-----END CERTIFICATE----- |
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,19 +1,25 @@ | ||
--- | ||
- name: restart ntpd | ||
become: true | ||
service: | ||
name: ntpd | ||
state: restarted | ||
|
||
# - name: restart iptables | ||
# service: name=iptables state=restarted | ||
# when: ansible_os_family == 'RedHat' | ||
- name: restart iptables | ||
become: true | ||
service: | ||
name: iptables | ||
state: restarted | ||
when: ansible_os_family == 'RedHat' | ||
|
||
- name: update yum | ||
become: true | ||
yum: | ||
name: "*" | ||
state: latest | ||
|
||
- name: restart sshd | ||
become: true | ||
service: | ||
name: sshd | ||
state: restarted |
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,7 +1,11 @@ | ||
--- | ||
#- name: restart ntpd | ||
#service: name=ntpd state=restarted | ||
#sudo: yes | ||
#- name: restart iptables | ||
#sudo: yes | ||
#service: name=iptables state=restarted | ||
- name: restart ntpd | ||
become: true | ||
service: | ||
name: ntpd | ||
state: restarted | ||
- name: restart iptables | ||
become: true | ||
service: | ||
name: iptables | ||
state: restarted |