This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbootstrap.yml
122 lines (121 loc) · 3.05 KB
/
bootstrap.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#######################
# apnscp Bootstrapper #
#######################
#
# A utility for apnscp to provision a CentOS/RHEL 7.4+ platform
# for use with apnscp
#
# Part of apnscp core playbooks
# https://github.com/apisnetworks/apnscp-playbooks
#
---
- hosts: localhost
become: yes
connection: local
gather_facts: yes
vars_files:
- 'apnscp-vars.yml'
- 'roles/common/vars/apnscp-internals.yml'
- ['{{ apnscp_user_defaults }}', '/dev/null']
- ['{{ apnscp_last_run_vars }}', '/dev/null']
roles:
# Hook: before running playbooks
- common/acquire-lock
- custom/preflight
- check-requirements
- common/update-config
- packages/configure-rhel
- filesystem/make-mounts
- system/kernel
- system/selinux
- epel
- systemd/mask-services
- packages/install
- apnscp/testing
- pgsql/install
- mysql/install
- system/rsyslog
- vsftpd/configure
- browscap
- php/install
- php/install-pecl-module
- php/create-configuration
- java/tomcat
- apnscp/install-services
- apnscp/bootstrap
#- apache/fcgid
- apnscp/build-php
- apnscp/install-extensions
- apnscp/install-vendor-library
- apnscp/initialize-db
# Checkpoint: admin should work fine at this point
- apnscp/create-admin
- apnscp/assert-admin-works
# Hook: apnscp is minimally viable
- custom/apnscp-bootstrapped
# Onto provisioning a test account
- network/hostname
- apache/configure
- apache/modpagespeed
- apnscp/link-bins
- apnscp/initialize-filesystem-template
- mail/configure-dovecot
- mail/configure-postfix
- software/haproxy
- mail/configure-courier-authlib
- apnscp/service-template
- apnscp/php-filesystem-template
- apnscp/bandwidth-log
- apnscp/admin-helper
- apnscp/dev
- system/nscd
- system/nss
- system/pam
- system/limits
- system/cgroup
- system/sysctl
- system/tuned
- system/sshd
- network/setup-firewall
- fail2ban/whitelist-self
- fail2ban/configure-jails
- mail/maildir
- mail/spamassassin
- mail/rspamd
- apnscp/register-ssl
- network/optimizations
# Odds and ends
- apnscp/crons
- system/yum
- mysql/phpmyadmin
- pgsql/phppgadmin
- mail/webmail-squirrelmail
- mail/webmail-roundcube
- mail/webmail-horde
- software/nvm
- software/pyenv
- software/rbenv
- software/goenv
- software/passenger
- software/etckeeper
- software/tmpfiles
- software/watchdog
- system/logs
- clamav/setup
- apache/modsecurity
- system/misc-logrotate
- software/argos
# Hook: before creating account (AddDomain)
# Perform additional unit tests
- custom/apnscp-validate-account
# Last checkpoint, validate a mock account
- apnscp/assert-account-works
- apnscp/notify-installed
####################################
# Add post-provisioning roles here #
####################################
- custom/installed
#
# Thanks for playing!
#
# (c) 2018 Apis Networks