auser-poolparty 0.2.77 → 0.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/PostInstall.txt +1 -1
- data/lib/poolparty/base_packages/poolparty.rb +2 -0
- data/lib/poolparty/helpers/provisioner_base.rb +4 -0
- data/lib/poolparty/helpers/provisioners/master.rb +0 -2
- data/lib/poolparty/templates/puppet.conf +1 -0
- data/lib/poolparty/templates/puppetrerun +4 -5
- data/poolparty.gemspec +2 -2
- metadata +2 -2
data/PostInstall.txt
CHANGED
@@ -102,6 +102,8 @@ module PoolParty
|
|
102
102
|
|
103
103
|
has_cron({:name => "maintain script", :command => ". /etc/profile && cloud-maintain -n #{cloud.name}", :minute => "*/3", :requires => [get_gempackage("poolparty"), get_cron("puppetd runner"), get_cron("Load handler"), get_service("haproxy")]})
|
104
104
|
|
105
|
+
has_cron(:name => "ensure puppetmaster is running", :command => ". /etc/profile && puppetmasterd --verbose", :hour => "0")
|
106
|
+
|
105
107
|
end
|
106
108
|
# has_host(:name => "puppet", :ip => (self.respond_to?(:master) ? self : parent).master.ip)
|
107
109
|
end
|
@@ -216,6 +216,7 @@ module PoolParty
|
|
216
216
|
make_logger_directory,
|
217
217
|
install_puppet,
|
218
218
|
fix_rubygems,
|
219
|
+
setup_system_for_poolparty,
|
219
220
|
custom_install_tasks
|
220
221
|
] << install_tasks
|
221
222
|
end
|
@@ -352,6 +353,9 @@ fi
|
|
352
353
|
mkdir -p #{Base.base_config_directory}/ssl/private_keys
|
353
354
|
mkdir -p #{Base.base_config_directory}/ssl/certs
|
354
355
|
mkdir -p #{Base.base_config_directory}/ssl/public_keys
|
356
|
+
|
357
|
+
cp #{Base.remote_storage_path}/#{Base.template_directory}/puppetrerun /usr/bin/puppetrerun
|
358
|
+
chmod +x /usr/bin/puppetrerun
|
355
359
|
EOS
|
356
360
|
end
|
357
361
|
end
|
@@ -142,9 +142,7 @@ ps aux | grep puppetmaster | awk '{print $2}' | xargs kill;rm -rf /etc/poolparty
|
|
142
142
|
def run_first_time
|
143
143
|
<<-EOE
|
144
144
|
echo "Running first time run"
|
145
|
-
cp #{Base.remote_storage_path}/#{Base.template_directory}/puppetrerun /usr/bin/puppetrerun
|
146
145
|
cp #{Base.remote_storage_path}/#{Base.template_directory}/puppetrunner /usr/bin/puppetrunner
|
147
|
-
chmod +x /usr/bin/puppetrerun
|
148
146
|
chmod +x /usr/bin/puppetrunner
|
149
147
|
EOE
|
150
148
|
end
|
@@ -2,15 +2,14 @@
|
|
2
2
|
|
3
3
|
. /etc/profile
|
4
4
|
if [ $(/usr/sbin/puppetd --onetime --no-daemonize --logdest syslog --server master)]; then
|
5
|
-
echo "Run successfully"
|
5
|
+
echo "Run successfully" && exit 0
|
6
6
|
else
|
7
7
|
echo "Clearing old certs"
|
8
8
|
HN=`hostname`
|
9
9
|
if [[ $HN == "master" ]]; then
|
10
|
-
ps aux | grep puppetmaster | awk '{print $2}' | xargs kill;rm -rf /etc/poolparty/ssl
|
11
|
-
/etc/init.d/puppetmaster start
|
12
|
-
/usr/sbin/puppetd --onetime --no-daemonize --logdest syslog --server master
|
10
|
+
ps aux | grep puppetmaster | awk '{print $2}' | xargs kill;rm -rf /etc/poolparty/ssl;/etc/init.d/puppetmaster start
|
11
|
+
/etc/init.d/puppetmaster start && /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog --server master
|
13
12
|
else
|
14
|
-
|
13
|
+
rm -rf /etc/poolparty/ssl/*;/usr/sbin/puppetd --onetime --no-daemonize --logdest syslog --server master
|
15
14
|
fi
|
16
15
|
fi
|
data/poolparty.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poolparty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.78
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Lerner
|
@@ -511,7 +511,7 @@ files:
|
|
511
511
|
has_rdoc: true
|
512
512
|
homepage: http://poolparty.rubyforge.org
|
513
513
|
post_install_message: |-
|
514
|
-
Get ready to jump in the pool, you just installed PoolParty! (Updated at
|
514
|
+
Get ready to jump in the pool, you just installed PoolParty! (Updated at 09:44 12/05/08)
|
515
515
|
|
516
516
|
To get started, run the generator:
|
517
517
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auser-poolparty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.78
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Lerner
|
@@ -511,7 +511,7 @@ files:
|
|
511
511
|
has_rdoc: true
|
512
512
|
homepage: http://poolparty.rubyforge.org
|
513
513
|
post_install_message: |-
|
514
|
-
Get ready to jump in the pool, you just installed PoolParty! (Updated at
|
514
|
+
Get ready to jump in the pool, you just installed PoolParty! (Updated at 09:44 12/05/08)
|
515
515
|
|
516
516
|
To get started, run the generator:
|
517
517
|
|