Skip to content
Snippets Groups Projects
Commit 347aa4ca authored by Shahaan Ayyub's avatar Shahaan Ayyub
Browse files

Merge pull request #10 from shahaan/mcc-nectar-karaage

Mcc nectar karaage
parents eca2013a ffd25cae
No related branches found
No related tags found
No related merge requests found
---
mkFileSystems:
- { fstype : 'ext4', dev : '/dev/vdc', opts: '' }
configDiskDevice: true
--- ---
- - name: Format File Systems
name: Format File Systems filesystem: fstype={{ item.fstype }} dev={{ item.dev }} opts={{ item.opts }}
filesystem: fstype={{ item.fstype }} dev={{ item.dev }} opts={{ item.opts }} with_items: mkFileSystems
with_items: mkFileSystems sudo: true
when: configDiskDevice when: configDiskDevice
-
name: Mount file systems - name: Mount device
mount: name=/mnt/{{ item.dev | basename }} src={{ item.dev }} fstype={{ item.fstype }} opts=loop state=mounted mount: name={{ item.name }} src={{ item.src }} fstype={{ item.fstype }} opts={{ item.mntopts }} state=mounted
with_items: mkFileSystems with_items: mntFileSystems
when: configDiskDevice sudo: true
when: configDiskDevice
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
template: src=ldap.conf.j2 dest=/etc/openldap/ldap.conf template: src=ldap.conf.j2 dest=/etc/openldap/ldap.conf
sudo: true sudo: true
- name: "Add LDAP server IP address to /etc/hosts"
lineinfile: dest=/etc/hosts line="{{ ldapServerHostIpLine }}" state=present insertafter=EOF
sudo: true
when: ldapServerHostIpLine is defined
- name: "Copy sssd.conf to ldap client" - name: "Copy sssd.conf to ldap client"
template: src=sssd.j2 dest=/etc/sssd/sssd.conf owner=root group=root mode=600 template: src=sssd.j2 dest=/etc/sssd/sssd.conf owner=root group=root mode=600
sudo: true sudo: true
......
--- ---
- name: Reload exports - name: "Reload exports"
command: exportfs -ra command: exportfs -ra
delegate_to: "{{ nfs_server }}" delegate_to: "{{ nfs_server }}"
run_once: true
sudo: true sudo: true
...@@ -5,3 +5,8 @@ ...@@ -5,3 +5,8 @@
run_once: true run_once: true
sudo: true sudo: true
notify: "Reload exports" notify: "Reload exports"
- name: "Restart the NFS server"
service: "name=nfs state=restarted"
delegate_to: "{{ nfs_server }}"
run_once: true
sudo: true
---
groupList:
- { name : 'computeNodes', interface : 'tun0' }
---
countryName: "AU"
reginalName: "Victoria"
cityName: "Melbourne"
organizationName: "Monash University"
emailAddress: "shahaan@gmail.com"
organizationUnit: "defaultUnit"
ldapDomain: "dc=monash,dc=edu,dc=au"
ldapManager: "cn=admin,dc=monash,dc=edu,dc=au"
ldapBindDN: "cn=ldapuser,ou=users,dc=monash,dc=edu,dc=au"
ldapUserBase: "ou=users,dc=monash,dc=edu,dc=au"
ldapGroupBase: "ou=groups,dc=monash,dc=edu,dc=au"
ldapBase: "dc=monash,dc=edu,dc=au"
ldapURI: "{% for host in groups['ldap-server'] %}ldaps://{{ hostvars[host]['ansible_fqdn'] }}{% endfor %}"
smtp_smarthost: "{{ ansible_hostname }}"
x509_ca_server: "vm-118-138-240-183.erc.monash.edu.au"
ldapManagerPassword: "imldap"
ldapBindDNPassword: "imbinddn"
domain: "erc.monash.edu.au"
karaage_sql_password: "imkaraage"
mysql_root_password: "immysql"
x509_key_file: "/etc/ssl/private/server.key"
x509_cert_file: "/etc/ssl/certs/server.crt"
x509_cacert_file: "/etc/ssl/certs/ca.crt"
x509_csr_args: ""
x509_sign_args: "{{ x509_csr_args }}"
x509_common_name: "{{ ansible_fqdn }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment