Browse Source

XMPP account creation

Luke Cyca 11 years ago
parent
commit
9bd0fc1737
4 changed files with 11 additions and 0 deletions
  1. 3
    0
      roles/xmpp/tasks/prosody.yml
  2. 1
    0
      vars/defaults.yml
  3. 4
    0
      vars/testing.yml
  4. 3
    0
      vars/user.yml

+ 3
- 0
roles/xmpp/tasks/prosody.yml View File

@@ -17,3 +17,6 @@
17 17
   template: src=prosody.cfg.lua.j2 dest=/etc/prosody/prosody.cfg.lua group=root owner=root
18 18
   notify: restart prosody
19 19
 
20
+- name: Create Prosody accounts
21
+  command: prosodyctl register {{ item.name }} {{ prosody_virtual_domain }} {{ item.password }}
22
+  with_items: prosody_accounts

+ 1
- 0
vars/defaults.yml View File

@@ -62,3 +62,4 @@ webmail_domain: "mail.{{ domain }}"
62 62
 # xmpp
63 63
 prosody_admin: "{{ admin_email }}"
64 64
 prosody_virtual_domain: "{{ domain }}"
65
+# prosody_accounts: (required)

+ 4
- 0
vars/testing.yml View File

@@ -53,3 +53,7 @@ openvpn_clients:
53 53
   - phone
54 54
   - tablet
55 55
 
56
+# xmpp
57
+prosody_accounts:
58
+  - name: "{{ main_user_name }}"
59
+    password: foo

+ 3
- 0
vars/user.yml View File

@@ -60,3 +60,6 @@ openvpn_clients:
60 60
 # xmpp
61 61
 prosody_admin: "{{ admin_email }}"
62 62
 prosody_virtual_domain: "{{ domain }}"
63
+prosody_accounts:
64
+  - name: "{{ main_user_name }}"
65
+    password: TODO

Loading…
Cancel
Save