You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
5.1 KiB

10 years ago
10 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. configz
  2. =======
  3. Yet another ansible's playbook repository
  4. roles
  5. ======
  6. * Common
  7. * provides **common** configuration
  8. * https://github.com/nojhan/liquidprompt <3
  9. * Update
  10. * allow install all update on hosts (tag normal)
  11. * allow update specific packages from list (tags packages)
  12. * use host_vars, group_vars or default vars to update packages list
  13. * Wallabag
  14. * provides **Wallabag** configuration
  15. * Imported with <3 from https://github.com/al3x/sovereign/
  16. * **Not yet READY**
  17. * Prosody
  18. * Provides XMPP (Jabber) server
  19. * Imported with <3 from https://github.com/al3x/sovereign/
  20. * **Not yet READY**
  21. * IRCBouncer
  22. * Provides a ZNC Config
  23. * Imported with <3 from https://github.com/al3x/sovereign/
  24. * Mail
  25. * provides a complete **mail** server for a given domain name and the vdomain capability for other domains.
  26. * **Note** : This role starts in order : common, mariadb, and mail. If you don't want one of them, please comment out.
  27. * **Note2** : If you already have a SQL server, **it wont erase the original config**, but it needs a ``~/.my.cnf``.
  28. * **TODO** :
  29. * Razor/Pyzor
  30. * Roundcube
  31. * Simplify template copy
  32. * Postgrey
  33. * MariaDB
  34. * provides a lambda **MariaDB** server peered on ``127.0.0.1:3306`` with ``root`` MySQL password on ``~/.my.cnf``
  35. * ownCloud
  36. * provides a simple instance of **ownCloud**, with ``NGINX, PHP5-FPM, and MariaDB``
  37. * xymon
  38. * https://www.xymon.com/
  39. * Provide installation of xymon server and xymon client monitoring system
  40. * Available for Debian (6 to 8) and Centos (6 to 7). **WARN** : xymon-server only for Debian (Centos dependencies are really hard to automate)
  41. * Configure apache for xymon-server
  42. * Configure xymon client and add the client in xymon server configuration to allow fetch data
  43. * **Note** : Using xymon-client tag needs a working xymon-server (whenever the server was installed with the playbook or not)
  44. * Cloud be (theoretically, to be tested) used to update xymon server binaries to last stable release
  45. * ovzdb
  46. * http://projets.developpeur-neurasthenique.fr/projects/openvz-diff-backups
  47. * Install openvz-diff-backup to an openvz host to backup container
  48. * enable update of openvz-diff-backup thanks to 0.9.4 version
  49. * enable backup AND upload feature via cron
  50. * enable purge feature via cron
  51. * enable customization of configuration file
  52. * use standard installation method (conf in /etc, link binary to /usr/local/bin)
  53. * provide bonus hook to create files when problems occurs (additionnally to send emails), allowing monitoring with standard tool (ie xymon and else)
  54. example host file
  55. =====
  56. ```yaml
  57. ---
  58. admin_ssh_keys: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZXK3ufonx+zNQ1x6cSWuUWckB/xf9sKZ+mRgY5SPXzqrxSkqNSmr9JQ6xzvhxKEVcFWsi50op1WWtRo3HG3p3+EHKXeCyzt5QnczDlVOoQbB8kgI0byKcvXux1inL4/Q4DbVLUbDFnynD/C5aAyYMYePahMxR+AQr60DD+7Ty6pcEVih1wwHIlxWziY1EF6sEzQwz/PiTxWIZkKHl/WPGagS9Pp/5nQfdZy0AS/JqbzNyMEg51+XedADuqseV4GXDzrzDYLJXJFv1PFVJxRWLrjChKrUMqyszUySkZMr5YSPXlsV0bi+0xivYEsXvIkLORV96JTZosYbV+0aFKDPv root@debian
  59. default_packages_debian: htop
  60. description: machine test
  61. # NTP
  62. ntp_servers:
  63. - 0.pool.ntp.org
  64. - 1.pool.ntp.org
  65. - 2.pool.ntp.org
  66. disable_ipv6: true
  67. # Update
  68. deb_packages_to_update:
  69. - apache2
  70. centos_packages_to_update:
  71. - httpd
  72. # Mail
  73. domain: test.net
  74. # MariaDB
  75. mariadb_version: 10.0
  76. mysql_root_password: changeme
  77. mysql_host: localhost
  78. # ircbouncer
  79. znc_version: 1.4
  80. irc_nick: (required)
  81. irc_ident: (required)
  82. irc_realname: (required)
  83. irc_quitmsg: (required)
  84. irc_password_hash: (required) # http://wiki.znc.in/Configuration#Pass
  85. irc_password_salt: (required) # http://wiki.znc.in/Configuration#Pass
  86. irc_timezone: "Europe/Paris" #Example: "Europe/Paris"
  87. network_address: irc.my.network.net
  88. network_port: 6697
  89. network_channel: 1337Chan
  90. # xmpp
  91. prosody_admin: "admin@test.net"
  92. prosody_virtual_domain: "test.net"
  93. prosody_accounts: admin@test.net
  94. #Wallabag
  95. wallabag_version: 1.8.1
  96. wallabag_domain: "read.{{ domain }}"
  97. wallabag_salt: (required)
  98. wallabag_db_username: wallabag
  99. wallabag_db_password: (required)
  100. wallabag_db_database: wallabag
  101. #xymon
  102. xymon_server: yyy.yyy.yyy.yyy # server IP address (mandatory)
  103. xymon_htname: admin # server user for webinterface use
  104. xymon_htpasswd: mysecurepasswd # server password for webinterface use
  105. ## xymon per client configuration (ie usually done in host_var)##
  106. monitoring_file: dns ## Where to store the host in hosts.d xymon server directory (optionnal)
  107. monitoring_section: dns ## Name of the page to use in xymon server webpage tree view (optionnal)
  108. monitoring_ip: xxx.xxx.xxx.xxx ## IP address of the client to add in server (mandatory)
  109. xymon_checks: "#" ## Checks to use for this client. Default '#' do a simple ping check
  110. #ovzdb
  111. ## You can duplicate backup locally and remotely
  112. ## by using openvz host as backup_server and
  113. ## remote server as upload_server
  114. ## I advice to customize cron hour to have
  115. ## backup, then purge, then upload
  116. backup_server: xxx.xxx.xxx.xxx
  117. backup_dir: "/var/lib/vz/backups/OpenVZ/"
  118. backup_minute: 10
  119. backup_hour: 02
  120. purge_minute: 10
  121. purge_hour: 03
  122. upload_server: yyy.yyy.yyy.yyy
  123. upload_dir: "/var/lib/vz/backups/OpenVZ/"
  124. upload_minute: 10
  125. upload_hour: 05
  126. admin_email: "your_email@example.com"
  127. # vim: set textwidth=0 ft=yaml:
  128. ```