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.

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