provizioning 0.9.14 → 0.9.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Provizioning
2
- VERSION = "0.9.14"
2
+ VERSION = "0.9.15"
3
3
  end
@@ -0,0 +1,26 @@
1
+ class go {
2
+ exec {"get-gophers-apt-key":
3
+ command => "apt-key adv --keyserver keyserver.ubuntu.com --recv 9AD198E9 ",
4
+ unless => "apt-key list | grep 9AD198E9 ",
5
+ }
6
+
7
+ file {"/etc/apt/sources.list.d/go.list":
8
+ ensure => present,
9
+ owner => root,
10
+ group => root,
11
+ content => "deb http://ppa.launchpad.net/gophers/go/ubuntu ${lsbdistcodename} main",
12
+ require => Exec["get-gophers-apt-key"],
13
+ }
14
+
15
+ exec {"update apt to find golang":
16
+ command => "/usr/bin/apt-get -y update",
17
+ require => File["/etc/apt/sources.list.d/go.list"],
18
+ subscribe => File["/etc/apt/sources.list.d/go.list"],
19
+ refreshonly => true,
20
+ }
21
+
22
+ package {"golang":
23
+ ensure => latest,
24
+ require => Exec["update apt to find golang"],
25
+ }
26
+ }
@@ -1,11 +1,11 @@
1
- upstream <%= domain_name.sub(".", "_") %> {
1
+ upstream <%= @domain_name.sub(".", "_") %> {
2
2
  server unix:/tmp/<%= application %>.sock fail_timeout=0;
3
3
  }
4
4
 
5
5
  server {
6
- listen 80;
6
+ listen <% if @port %><%= @port %><% else %>80<% end %>;
7
7
  client_max_body_size 4G;
8
- server_name <%= domain_name %> www.<%= domain_name %>;
8
+ server_name <%= @domain_name %><%= ' ' + @server_names.join(' ') if @server_names %>;
9
9
 
10
10
  keepalive_timeout 5;
11
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provizioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.14
4
+ version: 0.9.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-22 00:00:00.000000000 Z
12
+ date: 2012-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -151,6 +151,7 @@ files:
151
151
  - puppet/modules/drupal/tests/firewall.pp
152
152
  - puppet/modules/drupal/tests/init.pp
153
153
  - puppet/modules/drupal/tests/monitor.pp
154
+ - puppet/modules/go/manifests/init.pp
154
155
  - puppet/modules/hosts/README
155
156
  - puppet/modules/hosts/manifests/example42.pp
156
157
  - puppet/modules/hosts/manifests/init.pp