Browse Source

Merge pull request #47 from greenalto/global_config

Set two variable files from site.yml
Alex Payne 11 years ago
parent
commit
4b07b2164e

+ 1
- 0
.gitignore View File

1
+/vars/user.yml

+ 0
- 1
roles/blog/vars/main.yml View File

1
-blog_domain: TODO.com

+ 0
- 3
roles/common/vars/main.yml View File

1
-main_user_name: TODO
2
-admin_email: TODO@TODO.com
3
-encfs_password: TODO

+ 0
- 1
roles/ircbouncer/vars/main.yml View File

1
-znc_version: 1.0

+ 0
- 26
roles/mailserver/vars/main.yml View File

1
----
2
-mail_server_hostname: mail.TODO.com
3
-mail_mysql_username: mailuser
4
-mail_mysql_password: TODO
5
-mail_mysql_database: mailserver
6
-mail_virtual_domains:
7
-  - name: TODO
8
-    pk_id: 1
9
-    primary_user: TODO
10
-  - name: TODO
11
-    pk_id: 2
12
-    primary_user: TODO
13
-mail_virtual_users:
14
-  - address: TODO@TODO.com
15
-    password_hash: TODO
16
-    domain_pk_id: 1
17
-  - address: TODO@TODO.com
18
-    password_hash: TODO@TODO.com
19
-    domain_pk_id: 2
20
-mail_virtual_aliases:
21
-  - source: root@TODO.com
22
-    destination: TODO@TODO.com
23
-    domain_pk_id: 1
24
-  - source: postmaster@TODO.com
25
-    destination: TODO@TODO.com
26
-    domain_pk_id: 1

+ 0
- 0
roles/monitoring/vars/main.yml View File


+ 0
- 4
roles/owncloud/vars/main.yml View File

1
-owncloud_domain: cloud.TODO.com
2
-owncloud_mysql_username: owncloud
3
-owncloud_mysql_password: TODO
4
-owncloud_mysql_database: owncloud

+ 0
- 1
roles/tarsnap/vars/main.yml View File

1
-tarsnap_version: 1.0.35

+ 8
- 8
roles/vpn/templates/etc_openvpn_easy-rsa_2.0_vars.j2 View File

60
 # These are the default values for fields
60
 # These are the default values for fields
61
 # which will be placed in the certificate.
61
 # which will be placed in the certificate.
62
 # Don't leave any of these fields blank.
62
 # Don't leave any of these fields blank.
63
-export KEY_COUNTRY="{{ key_country }}"
64
-export KEY_PROVINCE="{{ key_province }}"
65
-export KEY_CITY="{{ key_city }}"
66
-export KEY_ORG="{{ key_org }}"
67
-export KEY_EMAIL="{{ key_email }}"
68
-export KEY_CN={{ key_cn }}
69
-export KEY_NAME={{ key_name }}
70
-export KEY_OU={{ key_ou }}
63
+export KEY_COUNTRY="{{ openvpn_key_country }}"
64
+export KEY_PROVINCE="{{ openvpn_key_province }}"
65
+export KEY_CITY="{{ openvpn_key_city }}"
66
+export KEY_ORG="{{ openvpn_key_org }}"
67
+export KEY_EMAIL="{{ openvpn_key_email }}"
68
+export KEY_CN={{ openvpn_key_cn }}
69
+export KEY_NAME={{ openvpn_key_name }}
70
+export KEY_OU={{ openvpn_key_ou }}
71
 export PKCS11_MODULE_PATH=changeme
71
 export PKCS11_MODULE_PATH=changeme
72
 export PKCS11_PIN=1234
72
 export PKCS11_PIN=1234

+ 0
- 8
roles/vpn/vars/main.yml View File

1
-key_country: TODO
2
-key_province: TODO
3
-key_city: TODO
4
-key_org: TODO
5
-key_email: TODO
6
-key_ou: TODO
7
-key_cn: TODO
8
-key_name: TODO

+ 0
- 1
roles/webmail/vars/main.yml View File

1
-webmail_domain: TODO.com

+ 3
- 0
site.yml View File

5
   user: deploy
5
   user: deploy
6
   sudo: True
6
   sudo: True
7
   gather_facts: False
7
   gather_facts: False
8
+  vars_files:
9
+    - vars/defaults.yml
10
+    - vars/user.yml
8
 
11
 
9
   roles:
12
   roles:
10
     - common
13
     - common

+ 68
- 0
vars/defaults.yml View File

1
+---
2
+###############################################################################
3
+# DO NOT EDIT. Set your variables in `vars/user.yml` instead. This is a
4
+# reference of all the variables.
5
+###############################################################################
6
+
7
+# # blog
8
+# blog_domain: TODO.com
9
+
10
+# # common
11
+# main_user_name: TODO
12
+# admin_email: TODO@TODO.com
13
+# encfs_password: TODO
14
+
15
+# ircbouncer
16
+znc_version: 1.0
17
+
18
+# # mailserver
19
+# mail_server_hostname: mail.TODO.com
20
+# mail_mysql_username: mailuser
21
+# mail_mysql_password: TODO
22
+# mail_mysql_database: mailserver
23
+# mail_virtual_domains:
24
+#   - name: TODO
25
+#     pk_id: 1
26
+#     primary_user: TODO
27
+#   - name: TODO
28
+#     pk_id: 2
29
+#     primary_user: TODO
30
+# mail_virtual_users:
31
+#   - address: TODO@TODO.com
32
+#     password_hash: TODO
33
+#     domain_pk_id: 1
34
+#   - address: TODO@TODO.com
35
+#     password_hash: TODO@TODO.com
36
+#     domain_pk_id: 2
37
+# mail_virtual_aliases:
38
+#   - source: root@TODO.com
39
+#     destination: TODO@TODO.com
40
+#     domain_pk_id: 1
41
+#   - source: postmaster@TODO.com
42
+#     destination: TODO@TODO.com
43
+#     domain_pk_id: 1
44
+
45
+# # monitoring
46
+
47
+
48
+# # owncloud
49
+# owncloud_domain: cloud.TODO.com
50
+# owncloud_mysql_username: owncloud
51
+# owncloud_mysql_password: TODO
52
+# owncloud_mysql_database: owncloud
53
+
54
+# tarsnap
55
+tarsnap_version: 1.0.35
56
+
57
+# # vpn
58
+# openvpn_key_country: TODO
59
+# openvpn_key_province: TODO
60
+# openvpn_key_city: TODO
61
+# openvpn_key_org: TODO
62
+# openvpn_key_email: TODO
63
+# openvpn_key_ou: TODO
64
+# openvpn_key_cn: TODO
65
+# openvpn_key_name: TODO
66
+
67
+# # webmail
68
+# webmail_domain: TODO.com

+ 68
- 0
vars/user.yml View File

1
+---
2
+###############################################################################
3
+# Uncomment and set your variables here. For a complete reference look at the
4
+# `vars/defaults.yml` file.
5
+###############################################################################
6
+#
7
+# # blog
8
+# blog_domain: TODO.com
9
+
10
+# # common
11
+# main_user_name: TODO
12
+# admin_email: TODO@TODO.com
13
+# encfs_password: TODO
14
+
15
+# # ircbouncer
16
+# znc_version: 1.0
17
+
18
+# # mailserver
19
+# mail_server_hostname: mail.TODO.com
20
+# mail_mysql_username: mailuser
21
+# mail_mysql_password: TODO
22
+# mail_mysql_database: mailserver
23
+# mail_virtual_domains:
24
+#   - name: TODO
25
+#     pk_id: 1
26
+#     primary_user: TODO
27
+#   - name: TODO
28
+#     pk_id: 2
29
+#     primary_user: TODO
30
+# mail_virtual_users:
31
+#   - address: TODO@TODO.com
32
+#     password_hash: TODO
33
+#     domain_pk_id: 1
34
+#   - address: TODO@TODO.com
35
+#     password_hash: TODO@TODO.com
36
+#     domain_pk_id: 2
37
+# mail_virtual_aliases:
38
+#   - source: root@TODO.com
39
+#     destination: TODO@TODO.com
40
+#     domain_pk_id: 1
41
+#   - source: postmaster@TODO.com
42
+#     destination: TODO@TODO.com
43
+#     domain_pk_id: 1
44
+
45
+# # monitoring
46
+
47
+
48
+# # owncloud
49
+# owncloud_domain: cloud.TODO.com
50
+# owncloud_mysql_username: owncloud
51
+# owncloud_mysql_password: TODO
52
+# owncloud_mysql_database: owncloud
53
+
54
+# # tarsnap
55
+# tarsnap_version: 1.0.35
56
+
57
+# # vpn
58
+# openvpn_key_country: TODO
59
+# openvpn_key_province: TODO
60
+# openvpn_key_city: TODO
61
+# openvpn_key_org: TODO
62
+# openvpn_key_email: TODO
63
+# openvpn_key_ou: TODO
64
+# openvpn_key_cn: TODO
65
+# openvpn_key_name: TODO
66
+
67
+# # webmail
68
+# webmail_domain: TODO.com

Loading…
Cancel
Save