cfer-provisioning 0.2.2 → 0.2.3
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.
- checksums.yaml +4 -4
- data/lib/cfer/provisioning/cloud-init.rb +9 -1
- data/lib/cfer/provisioning/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc8a63144b63bb13774bf1b6764368d6032e8615
|
|
4
|
+
data.tar.gz: c86670637d8c302df0de27120ef5ae8644618589
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10eab2c8f4a7c7ea2953c81702c05580d7f8bade7d046c3870e1f5908bb974c46fc7a67f03fc3eb9535885b56cb9b5f8b405d3fe358e83c61d460103e7ba097e
|
|
7
|
+
data.tar.gz: 1be4a1687130eb0d32ff19393dafbe632c0b866818ed97237313c2a5ad571630e2af5b2433613333e1007f800fb3c2e39259045ce0840cee2400144cfae0b6b7
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
require 'yaml'
|
|
2
2
|
|
|
3
3
|
module Cfer::Provisioning
|
|
4
|
+
begin
|
|
5
|
+
include Cfer::Core::Functions
|
|
6
|
+
rescue NameError => _
|
|
7
|
+
# we need to fall back to the old Cfer setup
|
|
8
|
+
include Cfer::Core
|
|
9
|
+
include Cfer::Cfn
|
|
10
|
+
end
|
|
11
|
+
|
|
4
12
|
def cloud_init
|
|
5
13
|
unless self.key?(:CloudInit)
|
|
6
14
|
self[:CloudInit] = {
|
|
@@ -59,7 +67,7 @@ module Cfer::Provisioning
|
|
|
59
67
|
def cloud_init_finalize!
|
|
60
68
|
cloud_init_outputs[:all] ||= "| tee -a /var/log/cloud-init-output.log"
|
|
61
69
|
|
|
62
|
-
user_data
|
|
70
|
+
user_data Fn.base64( cloud_init_to_user_data(self[:CloudInit]) )
|
|
63
71
|
self.delete :CloudInit
|
|
64
72
|
end
|
|
65
73
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cfer-provisioning
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Edwards
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|