[SUCS Devel] [Git][sucs/sucs][master] 3 commits: Add vars dir for some stuff. Also add a encrypted passwords file with passwords

Imran Hussain imranh at sucs.org
Sun Jan 8 20:19:59 GMT 2017


Imran Hussain pushed to branch master at sucs / SUCS


Commits:
89f0ce05 by Imran Hussain at 2017-01-08T20:14:04+00:00
Add vars dir for some stuff. Also add a encrypted passwords file with passwords

- - - - -
8cba210f by Imran Hussain at 2017-01-08T20:14:51+00:00
add a dir full of plays that might be useful

- - - - -
e6ffda81 by Imran Hussain at 2017-01-08T20:22:11+00:00
syntax fixes

- - - - -


4 changed files:

- + ansible/do_NOT_use/README
- + ansible/do_NOT_use/import_ldap_data.yml
- ansible/roles/ldap-server/tasks/main.yml
- + ansible/vars/passwords.yml


Changes:

=====================================
ansible/do_NOT_use/README
=====================================
--- /dev/null
+++ b/ansible/do_NOT_use/README
@@ -0,0 +1,5 @@
+this dir contains some ansible playbooks that shouldn't be used unless you 
+*really* know what you are doing
+
+there's no point in automating things that are only going to be run once but 
+this acts as a way of documenting how things are setup and version controling it


=====================================
ansible/do_NOT_use/import_ldap_data.yml
=====================================
--- /dev/null
+++ b/ansible/do_NOT_use/import_ldap_data.yml
@@ -0,0 +1,10 @@
+- hosts: silver
+  vars_files: 
+    - ../vars/passwords.yml
+  tasks:
+    - name: copy ldap data to silver
+      copy:
+        src: ~imranh/silver-upgrade/ldapdump
+        dest: /root/ldapdump
+    - name: import the data
+      command: slapadd -n 1 -c -F /etc/ldap/slapd.d/ -l /root/ldapdump
\ No newline at end of file


=====================================
ansible/roles/ldap-server/tasks/main.yml
=====================================
--- a/ansible/roles/ldap-server/tasks/main.yml
+++ b/ansible/roles/ldap-server/tasks/main.yml
@@ -18,7 +18,7 @@
   debconf:
     name: slapd
     question: slapd/password1
-    value: {{ ldap_password }}
+    value: "{{ ldap_password }}"
     vtype: password
   notify: reconfigure slapd
 
@@ -26,7 +26,7 @@
   debconf:
     name: slapd
     question: slapd/password2
-    value: {{ ldap_password }}
+    value: "{{ ldap_password }}"
     vtype: password
   notify: reconfigure slapd
 
@@ -48,7 +48,7 @@
 
 - name: install the latest version of slapd and ldap-utils
   package:
-    name: {{ item }}
+    name: "{{ item }}"
     state: latest
   with_items:
     - slapd


=====================================
ansible/vars/passwords.yml
=====================================
--- /dev/null
+++ b/ansible/vars/passwords.yml
@@ -0,0 +1,6 @@
+$ANSIBLE_VAULT;1.1;AES256
+38316237636262316364666235393863643833303565376664643233356566643864383033666439
+3765343365333766306537343162336464353761333137650a613331653239383666376637323663
+37666366313136633961313662643036356535666636616565613638356138376431303166373637
+6631666564376262630a313231393630306335346130313134326566393130613333643763303936
+32383163373232613363386336633665393934636138666662643661623762393638



View it on GitLab: https://projects.sucs.org/sucs/sucs/compare/c372ce2a4c13252972b22e3a3cdad73b4b66c5d7...e6ffda814dd97a2865d43ab6c524e369a84daf01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20170108/c81c5cff/attachment-0001.html>


More information about the Devel mailing list