pupistry 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -4
  3. data/lib/pupistry/config.rb +9 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ff9e16fb23fac8d09a0bf86e4bd88c452f52b29
4
- data.tar.gz: f944f6ea67120033772613d9e88186ca9cacdbf8
3
+ metadata.gz: fb015d29aead0f609e5cab660c3a6e8438565bd6
4
+ data.tar.gz: 7ac9aa4a7cd18d7bc3ea1fa6431d0636a8599c59
5
5
  SHA512:
6
- metadata.gz: beb20b7264be3c5a105dc6cb5e405944b51126d0a9880f998ec226c058e1869bb05037fa829e962fd487d2281292d355d2bcefbe5bbb2ac2039e8bd016cad278
7
- data.tar.gz: 0bc78b2c6f99795c877b75da67068844c89c7fc091b1c371109986d0fce1cc03d32c7ccd2b320ec412d3fe8cd02ad12d97e0719bb714d52f90cea00fb250d10a
6
+ metadata.gz: d1a9b7489858b33f69aa23dd10521cda71a721f428f00a97808dafab95f6c59c697cd250c1dbad27e2f44645fbdb97cfd72aca61f29e9176326d12fb96e62a4f
7
+ data.tar.gz: 50701a9b7a46b610353d809e16926e3526362a7408858c08f76e4793122bbc2a509e8898d9cea1ee531692fce8316db596dc85ff299b0ce63dac8dd1ead11f57
data/README.md CHANGED
@@ -122,12 +122,10 @@ nice easy life, Pupistry can generate you a bootstrap script for your platform.
122
122
  # Bootstrap for Red Hat Enterprise Linux Platform
123
123
  # Compatible with RHEL 7, CentOS 7 and maybe other variations.
124
124
 
125
- rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
126
- rpm -ivh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
125
+ rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
127
126
 
128
127
  yum update --assumeyes
129
- yum install --assumeyes puppet ruby-devel rubygems
130
- yum install --assumeyes gcc zlib-devel libxml2-devel patch
128
+ yum install --assumeyes puppet ruby-devel rubygems gcc zlib-devel libxml2-devel patch
131
129
 
132
130
  gem install pupistry
133
131
  mkdir /etc/pupistry
@@ -325,6 +323,14 @@ The bootstrap script goal is to get you from stock OS to running Pupistry and
325
323
  doing your first Puppet run. After that - it's up to you and your Puppet
326
324
  skills to make your node actually do something useful. :-)
327
325
 
326
+ Note that the node initialisation process is still susceptable to weaknesses
327
+ such as a bug in a new version of Puppet or Pupistry, or changes to the OS
328
+ packages. If this is a concern/issue for you and you want complete reliability,
329
+ then use the user data to build a host pre-loaded with Puppet and Pupistry and
330
+ then create an image of it using a tool like Packer. Doing this, you can make
331
+ it possible to build all the way to Puppet execution with no dependencies on any
332
+ third parties other than your VM provider and AWS S3.
333
+
328
334
 
329
335
  # Tutorials
330
336
 
@@ -46,7 +46,15 @@ module Pupistry
46
46
 
47
47
  def self.find_and_load
48
48
  $logger.debug "Looking for configuration file in common locations"
49
-
49
+
50
+ # If the HOME environmental hasn't been set (which can happen when
51
+ # running via some cloud user-data/init systems) the app will die
52
+ # horribly, we should set a HOME path default.
53
+ unless ENV['HOME']
54
+ $logger.warn "No HOME environmental set, defaulting to /tmp"
55
+ ENV['HOME'] = "/tmp"
56
+ end
57
+
50
58
  # Locations in order of preference:
51
59
  # settings.yaml (current dir)
52
60
  # ~/.pupistry/settings.yaml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pupistry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jethro Carr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-14 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-v1