cheftacular 2.0.0 → 2.0.1
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/cheftacular/README.md +2 -2
- data/lib/cheftacular/chef/data_bag.rb +1 -1
- data/lib/cheftacular/initializers.rb +1 -1
- data/lib/cheftacular/stateless_actions/add_ssh_key_to_bag.rb +3 -3
- data/lib/cheftacular/stateless_actions/cloud.rb +2 -2
- data/lib/cheftacular/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87ef04da7a57c27f4d32d916d3a1a150703ad141
|
4
|
+
data.tar.gz: 01a0e89d89622d64ef6850c9435fa043235cc73c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 474988b6d52df16f2d31f9f3597035b05bb94691ee5e27b43b44b01bad916efee713807574c98b53bc4a7fedb997c08b6db7b59302a35fbe993b0d50e69de8ed
|
7
|
+
data.tar.gz: 825348d57504b5abc2a2665fcf26fdfb2197739bab7d3e2d729d2980ce91e5267dca0cfd1cf28a0da1af0d511308ab04261dcf9fa2b11efcc2fb39d548623898
|
data/lib/cheftacular/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# Table of Contents for Cheftacular Commands
|
2
2
|
|
3
|
-
1. [Cheftacular Arguments and Flags](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#arguments-and-flags-for-cheftacular)
|
3
|
+
1. [Cheftacular Arguments and Flags](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#arguments-and-flags-for-cheftacular)
|
4
4
|
|
5
5
|
2. [Application Commands](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#commands-that-can-be-run-in-the-application-context)
|
6
6
|
|
7
|
-
3. [DevOps Commands](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#commands-that-can-only-be-run-in-the-devops-context)
|
7
|
+
3. [DevOps Commands](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#commands-that-can-only-be-run-in-the-devops-context)
|
8
8
|
|
9
9
|
|
10
10
|
## Arguments and flags for cheftacular
|
@@ -49,7 +49,7 @@ class Cheftacular
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def save_authentication_bag bag_env="default"
|
52
|
-
save_bag 'authentication', bag_env, @config['default']['authentication_bag'], @config['default']['authentication_bag_hash']
|
52
|
+
save_bag 'authentication', bag_env, @config['default']['authentication_bag'], @config['default']['authentication_bag_hash'], true
|
53
53
|
end
|
54
54
|
|
55
55
|
def save_chef_passwords_bag bag_env="options"
|
@@ -316,7 +316,7 @@ class Cheftacular
|
|
316
316
|
|
317
317
|
puts("Loading additional data bag data from chef server for environment \"#{ env }\" for bags: #{ bags_to_load.join(', ') }") if !in_initializer && !@options['quiet']
|
318
318
|
|
319
|
-
@config['ChefDataBag'].init_bag('default', 'authentication'
|
319
|
+
@config['ChefDataBag'].init_bag('default', 'authentication') if bags_to_load.empty? || bags_to_load.include?('authentication')
|
320
320
|
|
321
321
|
@config['helper'].completion_rate?(38, 'initializer') if in_initializer
|
322
322
|
|
@@ -24,7 +24,7 @@ class Cheftacular
|
|
24
24
|
|
25
25
|
specific_repository = ARGV[2] if ARGV[2] && specific_repository.empty?
|
26
26
|
|
27
|
-
|
27
|
+
if !specific_repository.empty? && @config['getter'].get_repo_names_for_repositories.include?(specific_repository)
|
28
28
|
puts "The repository passed (#{ specific_repository }) is not listed in the cheftacular.yml repositories hash! Please update the hash or check your spelling!"
|
29
29
|
|
30
30
|
return false
|
@@ -33,9 +33,9 @@ class Cheftacular
|
|
33
33
|
public_ssh_key = ARGV[1]
|
34
34
|
|
35
35
|
if specific_repository.blank?
|
36
|
-
@config['default']['authentication_bag_hash']["authorized_keys"] <<
|
36
|
+
@config['default']['authentication_bag_hash']["authorized_keys"] << public_ssh_key
|
37
37
|
else
|
38
|
-
@config['default']['authentication_bag_hash']["specific_authorized_keys"] <<
|
38
|
+
@config['default']['authentication_bag_hash']["specific_authorized_keys"] << public_ssh_key
|
39
39
|
end
|
40
40
|
|
41
41
|
@config['ChefDataBag'].save_authentication_bag
|
@@ -44,8 +44,8 @@ class Cheftacular
|
|
44
44
|
|
45
45
|
" 4. `destroy:SERVER_NAME` destroys the server on the cloud. This must be an exact match of the server's actual name or the script will error.",
|
46
46
|
|
47
|
-
" 5. `poll:SERVER_NAME` polls the cloud's server for the status of the SERVER_NAME. " +
|
48
|
-
"
|
47
|
+
" 5. `poll:SERVER_NAME` polls the cloud's server for the status of the SERVER_NAME. This command " +
|
48
|
+
"will stop polling if / when the status of the server is ACTIVE and its build progress is 100%.",
|
49
49
|
|
50
50
|
" 6. `attach_volume:SERVER_NAME:VOLUME_NAME[:VOLUME_SIZE[:DEVICE_LOCATION]]` " +
|
51
51
|
"If VOLUME_NAME exists it will attach it if it is unattached otherwise it will create it",
|
data/lib/cheftacular/version.rb
CHANGED