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.

157 lines
5.7 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-client and xymon-server
  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/role 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. * Possibility to use beta version in file directory: hard coded for the moment, name the file openvz-diff-backups_v0.9.8-beta.tar.gz and use -e beta=true on command line
  55. * rudder-node
  56. * https://www.rudder-project.org
  57. * allow to configure a debian/ubuntu rudder node to report to a rudder server
  58. * you need a working rudder-server (https://www.rudder-project.org/doc-4.1/_install_rudder_server.html)
  59. * use rudder_server variable to configure your rudderserver IP (rudder advice to use IP addresses instead of DNS)
  60. example host file
  61. =====
  62. ```yaml
  63. ---
  64. admin_ssh_keys: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZXK3ufonx+zNQ1x6cSWuUWckB/xf9sKZ+mRgY5SPXzqrxSkqNSmr9JQ6xzvhxKEVcFWsi50op1WWtRo3HG3p3+EHKXeCyzt5QnczDlVOoQbB8kgI0byKcvXux1inL4/Q4DbVLUbDFnynD/C5aAyYMYePahMxR+AQr60DD+7Ty6pcEVih1wwHIlxWziY1EF6sEzQwz/PiTxWIZkKHl/WPGagS9Pp/5nQfdZy0AS/JqbzNyMEg51+XedADuqseV4GXDzrzDYLJXJFv1PFVJxRWLrjChKrUMqyszUySkZMr5YSPXlsV0bi+0xivYEsXvIkLORV96JTZosYbV+0aFKDPv root@debian
  65. default_packages_debian: htop
  66. description: machine test
  67. # NTP
  68. ntp_servers:
  69. - 0.pool.ntp.org
  70. - 1.pool.ntp.org
  71. - 2.pool.ntp.org
  72. disable_ipv6: true
  73. # Update
  74. deb_packages_to_update:
  75. - apache2
  76. centos_packages_to_update:
  77. - httpd
  78. # Mail
  79. domain: test.net
  80. # MariaDB
  81. mariadb_version: 10.0
  82. mysql_root_password: changeme
  83. mysql_host: localhost
  84. # ircbouncer
  85. znc_version: 1.4
  86. irc_nick: (required)
  87. irc_ident: (required)
  88. irc_realname: (required)
  89. irc_quitmsg: (required)
  90. irc_password_hash: (required) # http://wiki.znc.in/Configuration#Pass
  91. irc_password_salt: (required) # http://wiki.znc.in/Configuration#Pass
  92. irc_timezone: "Europe/Paris" #Example: "Europe/Paris"
  93. network_address: irc.my.network.net
  94. network_port: 6697
  95. network_channel: 1337Chan
  96. # xmpp
  97. prosody_admin: "admin@test.net"
  98. prosody_virtual_domain: "test.net"
  99. prosody_accounts: admin@test.net
  100. #Wallabag
  101. wallabag_version: 1.8.1
  102. wallabag_domain: "read.{{ domain }}"
  103. wallabag_salt: (required)
  104. wallabag_db_username: wallabag
  105. wallabag_db_password: (required)
  106. wallabag_db_database: wallabag
  107. #xymon
  108. xymon_server: yyy.yyy.yyy.yyy # server IP address (mandatory)
  109. xymon_htname: admin # server user for webinterface use
  110. xymon_htpasswd: mysecurepasswd # server password for webinterface use
  111. ## xymon per client configuration (ie usually done in host_var)##
  112. monitoring_file: dns ## Where to store the host in hosts.d xymon server directory (optionnal)
  113. monitoring_section: dns ## Name of the page to use in xymon server webpage tree view (optionnal)
  114. monitoring_ip: xxx.xxx.xxx.xxx ## IP address of the client to add in server (mandatory)
  115. xymon_checks: "#" ## Checks to use for this client. Default '#' do a simple ping check
  116. #ovzdb
  117. ## You can duplicate backup locally and remotely
  118. ## by using openvz host as backup_server and
  119. ## remote server as upload_server
  120. ## I advice to customize cron hour to have
  121. ## backup, then purge, then upload
  122. backup_server: xxx.xxx.xxx.xxx
  123. backup_dir: "/var/lib/vz/backups/OpenVZ/"
  124. backup_minute: 10
  125. backup_hour: 02
  126. purge_minute: 10
  127. purge_hour: 03
  128. upload_server: yyy.yyy.yyy.yyy
  129. upload_dir: "/var/lib/vz/backups/OpenVZ/"
  130. upload_minute: 10
  131. upload_hour: 05
  132. admin_email: "your_email@example.com"
  133. # rudder-node
  134. rudder_server: 192.168.0.100
  135. # vim: set textwidth=0 ft=yaml:
  136. ```