content => "${pg_infos[pgbouncer_dbname]} = host=$pg_path$pg_port user=${pg_infos[dbuser]} dbname=${pg_infos[dbname]}",
}
- # FIXME: current pam configuration requires password for postgres
+ # Current pam configuration requires password for postgres
# @profile::monitoring::local_service { "Database ${pg_infos[pgbouncer_dbname]} is available in pgbouncer":
# sudos => {
# "naemon-postgresql-database-public" => "naemon ALL=(postgres) NOPASSWD: /usr/bin/psql -c select\ nspname\ from\ pg_catalog.pg_namespace ${pg_infos[pgbouncer_dbname]}"
--- /dev/null
+# Puppet configuration repository for immae.eu's services
+
+This repository has the aim to help automate the installation of servers
+planned for a specific task, with the help of Puppet. The host are
+supposed to be listed in an LDAP-like database, which will contain the
+necessary credentials, variable configuration and secrets for each
+server.
+
+## Structure
+
+The repository is structured along Puppet modules (`modules/`
+directory). Each machine has one or several `role`, which determine the
+set of programs and configuration to install. Each role may be
+standalone, or require a set of `profile`, which is seen as a
+reusable component. (The structure is inspired from the tutorial at
+[https://www.craigdunn.org/2012/05/239/](https://www.craigdunn.org/2012/05/239/) )
+
+
+## TODO
+
+- Complete documentation
+- Add some monitoring:
+ - modules/profile/manifests/postgresql/ssl.pp (check postgresql certificate)
+ - modules/profile/manifests/postgresql/backup\_pgbouncer.pp (check pgbouncer works)
+ - modules/profile/manifests/apache.pp (check website is accessible and ssl)
+ - modules/profile/manifests/mail.pp (check e-mails are going through)
+ - modules/profile/manifests/redis.pp (check redis is running)
+ - modules/role/\* (role-specific checks)
+- Add redis replication and dumps
+- Restore backups for cryptoportfolio
+- Ensure latest by default for packages
+- try to do a mkfs.ext4 for cloud vps
# mkfs.ext4 -F -U "$UUID" "$DEVICE"
sudo mount "$DEVICE" /mnt
-##### FIXME: mkfs.ext4 would be better ####
+##### mkfs.ext4 would be better ####
for i in /mnt/*; do
if [ "$i" = "/mnt/boot" ]; then
# keep /boot/grub
sudo rm -rf $i
fi
done
-##### /FIXME ####
+##### / ####
sudo pacstrap -G /mnt base git puppet