hammer_cli_foreman_salt 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +11 -0
- data/lib/hammer_cli_foreman_salt/salt_autosign.rb +34 -0
- data/lib/hammer_cli_foreman_salt/salt_environment.rb +35 -0
- data/lib/hammer_cli_foreman_salt/salt_key.rb +33 -0
- data/lib/hammer_cli_foreman_salt/salt_minion.rb +42 -0
- data/lib/hammer_cli_foreman_salt/salt_state.rb +35 -0
- data/lib/hammer_cli_foreman_salt/version.rb +5 -0
- data/lib/hammer_cli_foreman_salt.rb +9 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NzM3M2Y2ZDEzY2RjNWQ5OWY3MDk1YTNmY2RiNWYzNTRhMWY0MzQwZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
N2M0OGMyMGM5YmI2N2MzNDI4OWFiMTk5NWQwZDQyNDc3MTRhNzU2OQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ODg2M2EzZjI0NTQ5ZWFmOWUwMGM3YTNhZmY4NTg1YjVjOGYxNzY3ZTdlOWU0
|
10
|
+
YzE2YjJjODMxMDY3MGExZWQzOWMwYmY0MjllM2VlMzg2MjY0Y2Q1NmM5Y2I5
|
11
|
+
N2ZkNmEyYTdkZjA0M2VjMjBmNzdjMzVlZjY3MmVkNTRmNjJlMzQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTY0YjgxN2Q1ZGZlYzhhMmVhOGJmNDQ4MjJkMTkzYjVhNTVmNDU1MjA5Y2Vj
|
14
|
+
ZWQ3ODM0N2U2NWFlZmE1NDA1NDk3YWNlYTRmY2Y4ZGFkYTFmYzEwNzY0NjFj
|
15
|
+
ODAzMzNhNWZkOGFiY2NhZTIwNjY4ZDIwNzA5ZGM0NzM4OTcyZjQ=
|
data/README.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
Foreman Salt Commands for Hammer CLI
|
2
|
+
=========================================
|
3
|
+
|
4
|
+
This [Hammer CLI](https://github.com/theforeman/hammer-cli) plugin contains
|
5
|
+
set of commands for [foreman_salt](https://github.com/theforeman/foreman_salt),
|
6
|
+
a plugin to [Foreman](http://theforeman.org/) for SaltStack.
|
7
|
+
|
8
|
+
License
|
9
|
+
-------
|
10
|
+
|
11
|
+
This project is licensed under the GPLv3+.
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'hammer_cli'
|
2
|
+
require 'hammer_cli_foreman'
|
3
|
+
|
4
|
+
module HammerCLIForemanSalt
|
5
|
+
class SaltAutosign < HammerCLIForeman::Command
|
6
|
+
resource :salt_autosign
|
7
|
+
|
8
|
+
class ListCommand < HammerCLIForeman::ListCommand
|
9
|
+
output do
|
10
|
+
field :record, _('Autosign record')
|
11
|
+
end
|
12
|
+
|
13
|
+
build_options
|
14
|
+
end
|
15
|
+
|
16
|
+
class CreateCommand < HammerCLIForeman::CreateCommand
|
17
|
+
success_message _('Salt autosign record created')
|
18
|
+
failure_message _('Could not create the Salt autosign record')
|
19
|
+
|
20
|
+
build_options
|
21
|
+
end
|
22
|
+
|
23
|
+
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
24
|
+
success_message _('Salt autosign record deleted')
|
25
|
+
failure_message _('Could not delete the Salt autosign record')
|
26
|
+
|
27
|
+
build_options
|
28
|
+
end
|
29
|
+
|
30
|
+
autoload_subcommands
|
31
|
+
end
|
32
|
+
|
33
|
+
HammerCLI::MainCommand.subcommand 'salt-autosign', 'Manage Salt key autosigning', SaltAutosign
|
34
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'hammer_cli'
|
2
|
+
require 'hammer_cli_foreman'
|
3
|
+
|
4
|
+
module HammerCLIForemanSalt
|
5
|
+
class SaltEnvironment < HammerCLIForeman::Command
|
6
|
+
resource :salt_environments
|
7
|
+
|
8
|
+
class ListCommand < HammerCLIForeman::ListCommand
|
9
|
+
output do
|
10
|
+
field :id, _('ID')
|
11
|
+
field :name, _('Name')
|
12
|
+
end
|
13
|
+
|
14
|
+
build_options
|
15
|
+
end
|
16
|
+
|
17
|
+
class CreateCommand < HammerCLIForeman::CreateCommand
|
18
|
+
success_message _('Salt Environment created')
|
19
|
+
failure_message _('Could not create the Salt Environment')
|
20
|
+
|
21
|
+
build_options
|
22
|
+
end
|
23
|
+
|
24
|
+
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
25
|
+
success_message _('Salt Environment deleted')
|
26
|
+
failure_message _('Could not delete the Salt Environment')
|
27
|
+
|
28
|
+
build_options
|
29
|
+
end
|
30
|
+
|
31
|
+
autoload_subcommands
|
32
|
+
end
|
33
|
+
|
34
|
+
HammerCLI::MainCommand.subcommand 'salt-environment', 'Manage Salt Environments', SaltEnvironment
|
35
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'hammer_cli'
|
2
|
+
require 'hammer_cli_foreman'
|
3
|
+
|
4
|
+
module HammerCLIForemanSalt
|
5
|
+
class SaltKey < HammerCLIForeman::Command
|
6
|
+
resource :salt_keys
|
7
|
+
|
8
|
+
class ListCommand < HammerCLIForeman::ListCommand
|
9
|
+
output do
|
10
|
+
field :name, _('Name')
|
11
|
+
field :fingerprint, _('Fingerprint')
|
12
|
+
field :state, _('State')
|
13
|
+
end
|
14
|
+
|
15
|
+
build_options
|
16
|
+
end
|
17
|
+
|
18
|
+
class UpdateCommand < HammerCLIForeman::UpdateCommand
|
19
|
+
build_options
|
20
|
+
end
|
21
|
+
|
22
|
+
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
23
|
+
success_message _('Salt key deleted')
|
24
|
+
failure_message _('Could not delete the Salt key')
|
25
|
+
|
26
|
+
build_options
|
27
|
+
end
|
28
|
+
|
29
|
+
autoload_subcommands
|
30
|
+
end
|
31
|
+
|
32
|
+
HammerCLI::MainCommand.subcommand 'salt-key', 'Manage Salt keys', SaltKey
|
33
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'hammer_cli'
|
2
|
+
require 'hammer_cli_foreman'
|
3
|
+
|
4
|
+
module HammerCLIForemanSalt
|
5
|
+
class SaltMinion < HammerCLIForeman::Command
|
6
|
+
resource :salt_minions
|
7
|
+
|
8
|
+
class ListCommand < HammerCLIForeman::ListCommand
|
9
|
+
output do
|
10
|
+
field :id, _('ID')
|
11
|
+
field :name, _('Name')
|
12
|
+
field :salt_master, _("Salt Master")
|
13
|
+
field :salt_environment_id, _("Salt Environment ID")
|
14
|
+
end
|
15
|
+
|
16
|
+
build_options
|
17
|
+
end
|
18
|
+
|
19
|
+
class InfoCommand < HammerCLIForeman::InfoCommand
|
20
|
+
output do
|
21
|
+
field :id, _('ID')
|
22
|
+
field :name, _('Name')
|
23
|
+
field :salt_master, _("Salt Master")
|
24
|
+
field :salt_environment_id, _("Salt Environment ID")
|
25
|
+
collection :salt_states, _("Salt States"), :hide_blank => true do
|
26
|
+
field :id, _("ID")
|
27
|
+
field :name, _("Name")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
build_options
|
32
|
+
end
|
33
|
+
|
34
|
+
class UpdateCommand < HammerCLIForeman::UpdateCommand
|
35
|
+
build_options
|
36
|
+
end
|
37
|
+
|
38
|
+
autoload_subcommands
|
39
|
+
end
|
40
|
+
|
41
|
+
HammerCLI::MainCommand.subcommand 'salt-minion', 'Manage Salt minions', SaltMinion
|
42
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'hammer_cli'
|
2
|
+
require 'hammer_cli_foreman'
|
3
|
+
|
4
|
+
module HammerCLIForemanSalt
|
5
|
+
class SaltState < HammerCLIForeman::Command
|
6
|
+
resource :salt_states
|
7
|
+
|
8
|
+
class ListCommand < HammerCLIForeman::ListCommand
|
9
|
+
output do
|
10
|
+
field :id, _('ID')
|
11
|
+
field :name, _('Name')
|
12
|
+
end
|
13
|
+
|
14
|
+
build_options
|
15
|
+
end
|
16
|
+
|
17
|
+
class CreateCommand < HammerCLIForeman::CreateCommand
|
18
|
+
success_message _('Salt State created')
|
19
|
+
failure_message _('Could not create the Salt State')
|
20
|
+
|
21
|
+
build_options
|
22
|
+
end
|
23
|
+
|
24
|
+
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
25
|
+
success_message _('Salt State deleted')
|
26
|
+
failure_message _('Could not delete the Salt State')
|
27
|
+
|
28
|
+
build_options
|
29
|
+
end
|
30
|
+
|
31
|
+
autoload_subcommands
|
32
|
+
end
|
33
|
+
|
34
|
+
HammerCLI::MainCommand.subcommand 'salt-state', 'Manage Salt States', SaltState
|
35
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'hammer_cli_foreman'
|
2
|
+
|
3
|
+
module HammerCLIForemanSalt
|
4
|
+
require 'hammer_cli_foreman_salt/salt_autosign'
|
5
|
+
require 'hammer_cli_foreman_salt/salt_environment'
|
6
|
+
require 'hammer_cli_foreman_salt/salt_key'
|
7
|
+
require 'hammer_cli_foreman_salt/salt_minion'
|
8
|
+
require 'hammer_cli_foreman_salt/salt_state'
|
9
|
+
end
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hammer_cli_foreman_salt
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Stephen Benjamin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: hammer_cli_foreman
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.1.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.1.2
|
27
|
+
description: Foreman Salt-related commands for Hammer CLI
|
28
|
+
email: stephen@redhat.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README.md
|
33
|
+
files:
|
34
|
+
- README.md
|
35
|
+
- lib/hammer_cli_foreman_salt.rb
|
36
|
+
- lib/hammer_cli_foreman_salt/salt_autosign.rb
|
37
|
+
- lib/hammer_cli_foreman_salt/salt_environment.rb
|
38
|
+
- lib/hammer_cli_foreman_salt/salt_key.rb
|
39
|
+
- lib/hammer_cli_foreman_salt/salt_minion.rb
|
40
|
+
- lib/hammer_cli_foreman_salt/salt_state.rb
|
41
|
+
- lib/hammer_cli_foreman_salt/version.rb
|
42
|
+
homepage: http://github.com/theforeman/hammer_cli_foreman_salt
|
43
|
+
licenses:
|
44
|
+
- GPL v3+
|
45
|
+
metadata: {}
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ! '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.2.2
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Foreman Salt-related commands for Hammer
|
66
|
+
test_files: []
|