-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.yml
64 lines (41 loc) · 1.31 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
##
# pcd-common defaults
#
# Identity defaults
###################
PCD_DEFAULT_ORG: ansible
PCD_DEFAULT_USER_NAME: ansible
PCD_DEFAULT_USER_PASS: !!null
PCD_DEFAULT_USER_EMAIL: "{{ PCD_DEFAULT_USER_NAME }}@localhost"
# Application defaults
######################
PCD_APPS_DIR: /apps
PCD_SITES_DIR: /sites
# set to "" (empty string) to disable cronic
PCD_CRON_PREFIX: "/usr/local/bin/cronic "
# Register shared (amongst roles) variables
###########################################
PCD_DEFAULT_SITE_ORG: "{{ PCD_DEFAULT_ORG }}"
PCD_SITE_DEFINITIONS: "{{ inventory_dir }}/../sites"
# awstats role
##############
AWSTATS_SITE_NAME: "stats.{{ ansible_fqdn }}" # e.g. stats.chi-app-1.iceburg.net
AWSTATS_SITE_PATH: "{{ PCD_SITES_DIR }}/awstats/{{ AWSTATS_SITE_NAME }}"
AWSTATS_CONF_DIR: "{{ AWSTATS_SITE_PATH }}/conf"
# backup role
#############
BACKUP_USER: backupop
BACKUP_USER_HOME: "/backups"
BACKUP_RSYNC_INCLUDES_DIR: "{{ BACKUP_USER_HOME }}/rsync-includes"
BACKUP_RSYNC_SITES_FILE: "{{ BACKUP_RSYNC_INCLUDES_DIR }}/rsync_sites.inc"
# httpd role
############
HTTPD_HTTP_PORT: 80
HTTPD_HTTPS_PORT: 443
HTTPD_LOG_DIR: "{{ PCD_SITES_DIR }}/logs"
HTTPD_LOG_FORMAT: awstats
HTTPD_USER: siteop
HTTPD_USER_GROUP: httpdconf
HTTPD_USER_HOME: "{{ PCD_SITES_DIR }}"
HTTPD_SSL_DIR: "{{ HTTPD_USER_HOME }}/ssl-certificates"