awstool 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c224130b5182add3a896aa736a9621816426b56
4
- data.tar.gz: 6d9438054a249fa15121718f3ef84133cf687e18
3
+ metadata.gz: 5ab96728468030a0481d6f9f85c29c09864fb41c
4
+ data.tar.gz: cdb3c8a42d9ae008a6a2c63c015c7a1020317304
5
5
  SHA512:
6
- metadata.gz: 848106e04dac4e3e951c13aef9e514e86bd1f306c87209e604a7196ba26087223e4ac85bff16fed11ddc203a8844c1cf698ab301cc11a12bb9a750344971314b
7
- data.tar.gz: d88c27587270d27104d3dbcb1f66fcbfbeac8e5015638021a55a9ae2ac3bcee88e89338214d75b609d228bb248517fec6fb5895abfe500fbe6f438576540ae9a
6
+ metadata.gz: 45c44c1ead2aba5c2ed00ab681910b8b93788ff6210e592c82ee813dcf117e3509a67005f76c48016d84fb87da25590c8c0090e9d9da1dad73b7adefd95e1d2f
7
+ data.tar.gz: c0f20cd56e006dab6891b47139072cd1215576ae0b9889b48d08c68b5bd5a88f7676f3758c10a7cbf575221644d3cd7433d711795d71859b18693ec477c4f982
@@ -45,7 +45,8 @@ class Awstool::Instance
45
45
  record = zone.records.create(
46
46
  value: @instance.private_ip_address,
47
47
  name: @options['hostname'],
48
- type: 'A'
48
+ type: 'A',
49
+ ttl: '300'
49
50
  )
50
51
  end
51
52
 
@@ -84,7 +84,7 @@ class Awstool::Settings
84
84
  @options['tags']= {}
85
85
  @options['hostnames'] = []
86
86
  @options['rootvol_size'] = 8
87
- @options['block_devices'] = []
87
+ @options['block_devices'] = false
88
88
  @options['timezone'] = 'UTC'
89
89
  end
90
90
  end
@@ -1,3 +1,3 @@
1
1
  module Awstool
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
data/userdata/default.erb CHANGED
@@ -1,9 +1,5 @@
1
1
  #cloud-config
2
2
 
3
- bootcmd:
4
- - echo <%= @options['hostname'] %> > /etc/hostname
5
- - hostname -F /etc/hostname
6
-
7
3
  timezone: <%= @options['timezone'] %>
8
4
 
9
5
  hostname: <%= @options['hostname'] %>
@@ -13,10 +9,11 @@ manage_etc_hosts: true
13
9
  package_upgrade: true
14
10
  package_reboot_if_required: true
15
11
 
12
+ <% if @options['block_devices'] %>
16
13
  disk_setup:
17
14
  <% @options['block_devices'].each do |device, opts| %>
18
15
  /dev/<%= device %>:
19
- table_type: mbr
16
+ table_type: gpt
20
17
  layout: true
21
18
  overwrite: true
22
19
  <% end %>
@@ -31,10 +28,9 @@ fs_setup:
31
28
 
32
29
  mounts:
33
30
  <% @options['block_devices'].each do |device, opts| %>
34
- - [ /dev/<%= device %>1, <%= opts['mountpoint'] %>, <%= opts['filesystem'] %>, 'defaults,noatime' ]
31
+ - [ /dev/<%= device %>1, <%= opts['mountpoint'] %>, <%= opts['filesystem'] %>, 'defaults,noatime', '0', '2' ]
32
+ <% end %>
35
33
  <% end %>
36
-
37
- mount_default_fields: [ None, None, "ext3", "defaults,noatime", "0","2" ]
38
34
 
39
35
  write_files:
40
36
  <% if @options['puppet_install']['csr_attributes'] %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awstool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Burgess
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-24 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler