apollon 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/.gemspec +35 -0
  3. data/.gitignore +5 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +87 -0
  6. data/LICENSE +21 -0
  7. data/README.md +100 -0
  8. data/Rakefile +20 -0
  9. data/TODO.md +22 -0
  10. data/Vagrantfile +92 -0
  11. data/WHATS_IN.md +55 -0
  12. data/artifacts/.gitkeepme +1 -0
  13. data/clean.sh +3 -0
  14. data/lib/apollon/app/app.rb +1 -0
  15. data/lib/apollon/core/core.rb +8 -0
  16. data/lib/apollon/helpers/helpers.rb +28 -0
  17. data/lib/{lib.rb → apollon/lib.rb} +0 -0
  18. data/lib/apollon/provisions/provisions.rb +8 -0
  19. data/lib/apollon/provisions/puppet.rb +1 -0
  20. data/lib/apollon/version.rb +5 -0
  21. data/lib/apollon.rb +1 -0
  22. data/packs/README.md +15 -0
  23. data/packs/core/README.md +3 -0
  24. data/packs/core/pack-digitalocean.sh +8 -0
  25. data/packs/core/pack-vagrant.sh +16 -0
  26. data/packs/core/packer.json +82 -0
  27. data/packs/core/provision.sh +9 -0
  28. data/packs/core/scripts/provision-digitalocean.sh +11 -0
  29. data/packs/examples/aws/pack.sh +6 -0
  30. data/packs/examples/aws/packer.json +18 -0
  31. data/packs/examples/digitalocean/data/images.json +344 -0
  32. data/packs/examples/digitalocean/data/regions.json +22 -0
  33. data/packs/examples/digitalocean/data/sizes.json +92 -0
  34. data/packs/examples/digitalocean/pack.sh +4 -0
  35. data/packs/examples/digitalocean/packer.json +18 -0
  36. data/packs/examples/virtualbox-iso/pack.sh +15 -0
  37. data/packs/examples/virtualbox-iso/packer.json +49 -0
  38. data/packs/examples/virtualbox-iso/provision.sh +3 -0
  39. data/puppet/environment.conf +7 -0
  40. data/puppet/manifests/all.pp +10 -0
  41. data/puppet/manifests/core.pp +3 -0
  42. data/puppet/manifests/db.pp +3 -0
  43. data/puppet/manifests/default.pp +3 -0
  44. data/puppet/manifests/dev.pp +3 -0
  45. data/puppet/manifests/ops.pp +3 -0
  46. data/puppet/manifests/sites/apollocrawler.com.pp +5 -0
  47. data/puppet/manifests/web.pp +5 -0
  48. data/puppet/modules/apache2/files/apache2.conf +221 -0
  49. data/puppet/modules/apache2/files/envvars +47 -0
  50. data/puppet/modules/apache2/files/magic +935 -0
  51. data/puppet/modules/apache2/files/ports.conf +15 -0
  52. data/puppet/modules/apache2/manifests/init.pp +46 -0
  53. data/puppet/modules/clang/manifests/init.pp +11 -0
  54. data/puppet/modules/cmake/manifests/init.pp +11 -0
  55. data/puppet/modules/core/files/sources.list +62 -0
  56. data/puppet/modules/core/manifests/init.pp +63 -0
  57. data/puppet/modules/couchdb/files/local.ini +98 -0
  58. data/puppet/modules/couchdb/manifests/init.pp +25 -0
  59. data/puppet/modules/db/manifests/init.pp +13 -0
  60. data/puppet/modules/dev/manifests/init.pp +20 -0
  61. data/puppet/modules/elasticsearch/files/elasticsearch.yml +377 -0
  62. data/puppet/modules/elasticsearch/files/logging.yml +56 -0
  63. data/puppet/modules/elasticsearch/manifests/init.pp +45 -0
  64. data/puppet/modules/erlang/manifests/init.pp +11 -0
  65. data/puppet/modules/ghc/manifests/init.pp +11 -0
  66. data/puppet/modules/git/manifests/init.pp +11 -0
  67. data/puppet/modules/golang/manifests/init.pp +11 -0
  68. data/puppet/modules/htop/manifests/init.pp +11 -0
  69. data/puppet/modules/java/files/accept-java-license.sh +4 -0
  70. data/puppet/modules/java/files/install-java7.sh +7 -0
  71. data/puppet/modules/java/files/install-java8.sh +7 -0
  72. data/puppet/modules/java/manifests/init.pp +86 -0
  73. data/puppet/modules/links/manifests/init.pp +11 -0
  74. data/puppet/modules/llvm/manifests/init.pp +11 -0
  75. data/puppet/modules/lynx/manifests/init.pp +11 -0
  76. data/puppet/modules/mc/manifests/init.pp +11 -0
  77. data/puppet/modules/memcache/files/memcached.conf +47 -0
  78. data/puppet/modules/memcache/manifests/init.pp +24 -0
  79. data/puppet/modules/mongodb/files/mongodb.conf +102 -0
  80. data/puppet/modules/mongodb/manifests/init.pp +24 -0
  81. data/puppet/modules/mosh/manifests/init.pp +11 -0
  82. data/puppet/modules/mysql/files/conf.d/mysqld_safe_syslog.cnf +2 -0
  83. data/puppet/modules/mysql/files/debian.cnf +12 -0
  84. data/puppet/modules/mysql/files/my.cnf +127 -0
  85. data/puppet/modules/mysql/manifests/init.pp +45 -0
  86. data/puppet/modules/nginx/manifests/init.pp +16 -0
  87. data/puppet/modules/nodejs/manifests/init.pp +41 -0
  88. data/puppet/modules/octave/manifests/init.pp +11 -0
  89. data/puppet/modules/ops/manifests/init.pp +12 -0
  90. data/puppet/modules/php5/manifests/init.pp +11 -0
  91. data/puppet/modules/postgresql/files/9.3/main/environment +7 -0
  92. data/puppet/modules/postgresql/files/9.3/main/pg_ctl.conf +5 -0
  93. data/puppet/modules/postgresql/files/9.3/main/pg_hba.conf +99 -0
  94. data/puppet/modules/postgresql/files/9.3/main/pg_ident.conf +42 -0
  95. data/puppet/modules/postgresql/files/9.3/main/postgresql.conf +598 -0
  96. data/puppet/modules/postgresql/files/9.3/main/start.conf +9 -0
  97. data/puppet/modules/postgresql/files/create-postgresql-user.sh +4 -0
  98. data/puppet/modules/postgresql/files/sql/bootstrap.sh +1 -0
  99. data/puppet/modules/postgresql/files/sql/create-extension-adminpack.sql +1 -0
  100. data/puppet/modules/postgresql/files/sql/create-extension-postgis.sql +11 -0
  101. data/puppet/modules/postgresql/manifests/init.pp +145 -0
  102. data/puppet/modules/python/manifests/init.pp +11 -0
  103. data/puppet/modules/r/manifests/init.pp +11 -0
  104. data/puppet/modules/rabbitmq/files/enable-user-management.sh +3 -0
  105. data/puppet/modules/rabbitmq/manifests/init.pp +36 -0
  106. data/puppet/modules/redis/files/memcached.conf +47 -0
  107. data/puppet/modules/redis/manifests/init.pp +19 -0
  108. data/puppet/modules/ruby/manifests/init.pp +11 -0
  109. data/puppet/modules/rvm/manifests/init.pp +33 -0
  110. data/puppet/modules/science/manifests/init.pp +8 -0
  111. data/puppet/modules/squid/manifests/init.pp +16 -0
  112. data/puppet/modules/svn/manifests/init.pp +11 -0
  113. data/puppet/modules/tomcat7/files/tomcat-users.xml +6 -0
  114. data/puppet/modules/tomcat7/manifests/init.pp +24 -0
  115. data/puppet/modules/varnish/manifests/init.pp +11 -0
  116. data/puppet/modules/web/manifests/init.pp +10 -0
  117. data/puppet/modules/zookeeper/files/conf/configuration.xsl +24 -0
  118. data/puppet/modules/zookeeper/files/conf/environment +20 -0
  119. data/puppet/modules/zookeeper/files/conf/log4j.properties +51 -0
  120. data/puppet/modules/zookeeper/files/conf/zoo.cfg +51 -0
  121. data/puppet/modules/zookeeper/manifests/init.pp +27 -0
  122. data/tmp/.gitkeepme +1 -0
  123. data/vagrant/profiles/default.json +53 -0
  124. metadata +156 -35
@@ -0,0 +1,221 @@
1
+ # This is the main Apache server configuration file. It contains the
2
+ # configuration directives that give the server its instructions.
3
+ # See http://httpd.apache.org/docs/2.4/ for detailed information about
4
+ # the directives and /usr/share/doc/apache2/README.Debian about Debian specific
5
+ # hints.
6
+ #
7
+ #
8
+ # Summary of how the Apache 2 configuration works in Debian:
9
+ # The Apache 2 web server configuration in Debian is quite different to
10
+ # upstream's suggested way to configure the web server. This is because Debian's
11
+ # default Apache2 installation attempts to make adding and removing modules,
12
+ # virtual hosts, and extra configuration directives as flexible as possible, in
13
+ # order to make automating the changes and administering the server as easy as
14
+ # possible.
15
+
16
+ # It is split into several files forming the configuration hierarchy outlined
17
+ # below, all located in the /etc/apache2/ directory:
18
+ #
19
+ # /etc/apache2/
20
+ # |-- apache2.conf
21
+ # | `-- ports.conf
22
+ # |-- mods-enabled
23
+ # | |-- *.load
24
+ # | `-- *.conf
25
+ # |-- conf-enabled
26
+ # | `-- *.conf
27
+ # `-- sites-enabled
28
+ # `-- *.conf
29
+ #
30
+ #
31
+ # * apache2.conf is the main configuration file (this file). It puts the pieces
32
+ # together by including all remaining configuration files when starting up the
33
+ # web server.
34
+ #
35
+ # * ports.conf is always included from the main configuration file. It is
36
+ # supposed to determine listening ports for incoming connections which can be
37
+ # customized anytime.
38
+ #
39
+ # * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
40
+ # directories contain particular configuration snippets which manage modules,
41
+ # global configuration fragments, or virtual host configurations,
42
+ # respectively.
43
+ #
44
+ # They are activated by symlinking available configuration files from their
45
+ # respective *-available/ counterparts. These should be managed by using our
46
+ # helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
47
+ # their respective man pages for detailed information.
48
+ #
49
+ # * The binary is called apache2. Due to the use of environment variables, in
50
+ # the default configuration, apache2 needs to be started/stopped with
51
+ # /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
52
+ # work with the default configuration.
53
+
54
+
55
+ # Global configuration
56
+ #
57
+
58
+ #
59
+ # ServerRoot: The top of the directory tree under which the server's
60
+ # configuration, error, and log files are kept.
61
+ #
62
+ # NOTE! If you intend to place this on an NFS (or otherwise network)
63
+ # mounted filesystem then please read the Mutex documentation (available
64
+ # at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
65
+ # you will save yourself a lot of trouble.
66
+ #
67
+ # Do NOT add a slash at the end of the directory path.
68
+ #
69
+ #ServerRoot "/etc/apache2"
70
+
71
+ #
72
+ # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
73
+ #
74
+ Mutex file:${APACHE_LOCK_DIR} default
75
+
76
+ #
77
+ # PidFile: The file in which the server should record its process
78
+ # identification number when it starts.
79
+ # This needs to be set in /etc/apache2/envvars
80
+ #
81
+ PidFile ${APACHE_PID_FILE}
82
+
83
+ #
84
+ # Timeout: The number of seconds before receives and sends time out.
85
+ #
86
+ Timeout 300
87
+
88
+ #
89
+ # KeepAlive: Whether or not to allow persistent connections (more than
90
+ # one request per connection). Set to "Off" to deactivate.
91
+ #
92
+ KeepAlive On
93
+
94
+ #
95
+ # MaxKeepAliveRequests: The maximum number of requests to allow
96
+ # during a persistent connection. Set to 0 to allow an unlimited amount.
97
+ # We recommend you leave this number high, for maximum performance.
98
+ #
99
+ MaxKeepAliveRequests 100
100
+
101
+ #
102
+ # KeepAliveTimeout: Number of seconds to wait for the next request from the
103
+ # same client on the same connection.
104
+ #
105
+ KeepAliveTimeout 5
106
+
107
+
108
+ # These need to be set in /etc/apache2/envvars
109
+ User ${APACHE_RUN_USER}
110
+ Group ${APACHE_RUN_GROUP}
111
+
112
+ #
113
+ # HostnameLookups: Log the names of clients or just their IP addresses
114
+ # e.g., www.apache.org (on) or 204.62.129.132 (off).
115
+ # The default is off because it'd be overall better for the net if people
116
+ # had to knowingly turn this feature on, since enabling it means that
117
+ # each client request will result in AT LEAST one lookup request to the
118
+ # nameserver.
119
+ #
120
+ HostnameLookups Off
121
+
122
+ # ErrorLog: The location of the error log file.
123
+ # If you do not specify an ErrorLog directive within a <VirtualHost>
124
+ # container, error messages relating to that virtual host will be
125
+ # logged here. If you *do* define an error logfile for a <VirtualHost>
126
+ # container, that host's errors will be logged there and not here.
127
+ #
128
+ ErrorLog ${APACHE_LOG_DIR}/error.log
129
+
130
+ #
131
+ # LogLevel: Control the severity of messages logged to the error_log.
132
+ # Available values: trace8, ..., trace1, debug, info, notice, warn,
133
+ # error, crit, alert, emerg.
134
+ # It is also possible to configure the log level for particular modules, e.g.
135
+ # "LogLevel info ssl:warn"
136
+ #
137
+ LogLevel warn
138
+
139
+ # Include module configuration:
140
+ IncludeOptional mods-enabled/*.load
141
+ IncludeOptional mods-enabled/*.conf
142
+
143
+ # Include list of ports to listen on
144
+ Include ports.conf
145
+
146
+
147
+ # Sets the default security model of the Apache2 HTTPD server. It does
148
+ # not allow access to the root filesystem outside of /usr/share and /var/www.
149
+ # The former is used by web applications packaged in Debian,
150
+ # the latter may be used for local directories served by the web server. If
151
+ # your system is serving content from a sub-directory in /srv you must allow
152
+ # access here, or in any related virtual host.
153
+ <Directory />
154
+ Options FollowSymLinks
155
+ AllowOverride None
156
+ Require all denied
157
+ </Directory>
158
+
159
+ <Directory /usr/share>
160
+ AllowOverride None
161
+ Require all granted
162
+ </Directory>
163
+
164
+ <Directory /var/www/>
165
+ Options Indexes FollowSymLinks
166
+ AllowOverride None
167
+ Require all granted
168
+ </Directory>
169
+
170
+ #<Directory /srv/>
171
+ # Options Indexes FollowSymLinks
172
+ # AllowOverride None
173
+ # Require all granted
174
+ #</Directory>
175
+
176
+
177
+
178
+
179
+ # AccessFileName: The name of the file to look for in each directory
180
+ # for additional configuration directives. See also the AllowOverride
181
+ # directive.
182
+ #
183
+ AccessFileName .htaccess
184
+
185
+ #
186
+ # The following lines prevent .htaccess and .htpasswd files from being
187
+ # viewed by Web clients.
188
+ #
189
+ <FilesMatch "^\.ht">
190
+ Require all denied
191
+ </FilesMatch>
192
+
193
+
194
+ #
195
+ # The following directives define some format nicknames for use with
196
+ # a CustomLog directive.
197
+ #
198
+ # These deviate from the Common Log Format definitions in that they use %O
199
+ # (the actual bytes sent including headers) instead of %b (the size of the
200
+ # requested file), because the latter makes it impossible to detect partial
201
+ # requests.
202
+ #
203
+ # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
204
+ # Use mod_remoteip instead.
205
+ #
206
+ LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
207
+ LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
208
+ LogFormat "%h %l %u %t \"%r\" %>s %O" common
209
+ LogFormat "%{Referer}i -> %U" referer
210
+ LogFormat "%{User-agent}i" agent
211
+
212
+ # Include of directories ignores editors' and dpkg's backup files,
213
+ # see README.Debian for details.
214
+
215
+ # Include generic snippets of statements
216
+ IncludeOptional conf-enabled/*.conf
217
+
218
+ # Include the virtual host configurations:
219
+ IncludeOptional sites-enabled/*.conf
220
+
221
+ # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
@@ -0,0 +1,47 @@
1
+ # envvars - default environment variables for apache2ctl
2
+
3
+ # this won't be correct after changing uid
4
+ unset HOME
5
+
6
+ # for supporting multiple apache2 instances
7
+ if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
8
+ SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
9
+ else
10
+ SUFFIX=
11
+ fi
12
+
13
+ # Since there is no sane way to get the parsed apache2 config in scripts, some
14
+ # settings are defined via environment variables and then used in apache2ctl,
15
+ # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
16
+ export APACHE_RUN_USER=www-data
17
+ export APACHE_RUN_GROUP=www-data
18
+ # temporary state file location. This might be changed to /run in Wheezy+1
19
+ export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
20
+ export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
21
+ export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
22
+ # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
23
+ export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
24
+
25
+ ## The locale used by some modules like mod_dav
26
+ export LANG=C
27
+ ## Uncomment the following line to use the system default locale instead:
28
+ #. /etc/default/locale
29
+
30
+ export LANG
31
+
32
+ ## The command to get the status for 'apache2ctl status'.
33
+ ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
34
+ #export APACHE_LYNX='www-browser -dump'
35
+
36
+ ## If you need a higher file descriptor limit, uncomment and adjust the
37
+ ## following line (default is 8192):
38
+ #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
39
+
40
+ ## If you would like to pass arguments to the web server, add them below
41
+ ## to the APACHE_ARGUMENTS environment.
42
+ #export APACHE_ARGUMENTS=''
43
+
44
+ ## Enable the debug mode for maintainer scripts.
45
+ ## This will produce a verbose output on package installations of web server modules and web application
46
+ ## installations which interact with Apache
47
+ #export APACHE2_MAINTSCRIPT_DEBUG=1