hammer_cli_foreman_admin 0.0.7 → 1.0.0
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 +5 -5
- data/README.md +12 -12
- data/config/cli.modules.d/foreman_admin_logging_core.yml +31 -1
- data/config/cli.modules.d/foreman_admin_logging_katello.yml +18 -2
- data/lib/hammer_cli_foreman_admin/logging_command.rb +2 -2
- data/lib/hammer_cli_foreman_admin/version.rb +1 -1
- data/locale/en/hammer-cli-foreman-admin.edit.po +74 -0
- metadata +18 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 7e56eb5fd9dcad105d8bb7045dfa781c1c1d7ffaff36a0c3d6d94996a9743f68
|
|
4
|
+
data.tar.gz: 83de0e56ae967dcf3d9a459be586cb450619a9296678d8c4d988f79b093336ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c94ff22b0cbae5542f47e7c40703a197cef40c5bd28b898d56e6b8f159dfee568d28c896edcefcac5af0942110975440338c06116da94362e59a220edc0743e3
|
|
7
|
+
data.tar.gz: 9f4c3b3457fd0d7577684b914094dfd45bde8261f6e9b86b99743423596dba8fad0f4f4e1f093a573baef04806df8ffb2912b198b7ba4e8514cff8a1fcc320aa
|
data/README.md
CHANGED
|
@@ -35,19 +35,19 @@ Currently recognized components (files):
|
|
|
35
35
|
|
|
36
36
|
# hammer admin logging --list
|
|
37
37
|
-----------|-------------------------------------|-------------------------------------
|
|
38
|
-
COMPONENT | AUTO-DETECTED BY EXISTENCE OF | DESTINATIONS
|
|
38
|
+
COMPONENT | AUTO-DETECTED BY EXISTENCE OF | DESTINATIONS
|
|
39
39
|
-----------|-------------------------------------|-------------------------------------
|
|
40
|
-
postgresql | /var/lib/pgsql/data/postgresql.conf | syslog /var/lib/pgsql/data/pg_log
|
|
41
|
-
rails | /etc/foreman/settings.yaml | /var/log/foreman/production.log
|
|
42
|
-
proxy | /etc/foreman-proxy/settings.yml | /var/log/foreman-proxy/proxy.log
|
|
43
|
-
puppet | /etc/puppet/puppet.conf | /var/log/puppet/masterhttp.log
|
|
44
|
-
dhcpd | /etc/dhcp/dhcpd.conf | syslog /var/log/dhcpd-debug.log
|
|
45
|
-
named | /etc/named.conf | syslog
|
|
46
|
-
tftp | /etc/xinetd.d/tftp | syslog
|
|
47
|
-
qpidd | /etc/qpid/qpidd.conf | syslog
|
|
40
|
+
postgresql | /var/lib/pgsql/data/postgresql.conf | syslog /var/lib/pgsql/data/pg_log
|
|
41
|
+
rails | /etc/foreman/settings.yaml | /var/log/foreman/production.log
|
|
42
|
+
proxy | /etc/foreman-proxy/settings.yml | /var/log/foreman-proxy/proxy.log
|
|
43
|
+
puppet | /etc/puppet/puppet.conf | /var/log/puppet/masterhttp.log
|
|
44
|
+
dhcpd | /etc/dhcp/dhcpd.conf | syslog /var/log/dhcpd-debug.log
|
|
45
|
+
named | /etc/named.conf | syslog
|
|
46
|
+
tftp | /etc/xinetd.d/tftp | syslog
|
|
47
|
+
qpidd | /etc/qpid/qpidd.conf | syslog
|
|
48
48
|
tomcat | /etc/candlepin/candlepin.conf | /var/log/candlepin/ /var/log/tomcat/
|
|
49
|
-
pulp | /etc/pulp/server.conf | syslog /var/log/pulp-debug.log
|
|
50
|
-
virt-who | /etc/sysconfig/virt-who | syslog
|
|
49
|
+
pulp | /etc/pulp/server.conf | syslog /var/log/pulp-debug.log
|
|
50
|
+
virt-who | /etc/sysconfig/virt-who | syslog
|
|
51
51
|
-----------|-------------------------------------|-------------------------------------
|
|
52
52
|
|
|
53
53
|
The tool uses search and replace approach declared in YAML configuration files
|
|
@@ -58,4 +58,4 @@ The tool uses search and replace approach declared in YAML configuration files
|
|
|
58
58
|
To test the logging subcommand, use the fixture examples and compare with git
|
|
59
59
|
diff:
|
|
60
60
|
|
|
61
|
-
hammer -d admin logging --prefix test/fixture_tree/ --no-backup -a -d
|
|
61
|
+
hammer -d admin logging --prefix $(pwd)/test/fixture_tree/ --no-backup -a -d
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
:join_with: ''
|
|
64
64
|
-
|
|
65
65
|
:name: puppet
|
|
66
|
-
:friendly_name:
|
|
66
|
+
:friendly_name: Puppet Master 2.x+
|
|
67
67
|
:file: /etc/puppet/puppet.conf
|
|
68
68
|
:destinations: "/var/log/puppet/masterhttp.log"
|
|
69
69
|
:services: ["apache2", "httpd"]
|
|
@@ -75,6 +75,20 @@
|
|
|
75
75
|
-
|
|
76
76
|
:action: ensure_line_is_present
|
|
77
77
|
:line: ["log_level", "=", "notice"]
|
|
78
|
+
-
|
|
79
|
+
:name: puppet5
|
|
80
|
+
:friendly_name: Puppet Master 5.x+
|
|
81
|
+
:file: /etc/puppetlabs/puppetserver/logback.xml
|
|
82
|
+
:destinations: "/var/log/puppetlabs/puppetserver/puppetserver.log"
|
|
83
|
+
:services: ["puppetserver"]
|
|
84
|
+
:debug:
|
|
85
|
+
-
|
|
86
|
+
:action: ensure_line_is_present
|
|
87
|
+
:line: ['<root level', '=', '"debug">']
|
|
88
|
+
:production:
|
|
89
|
+
-
|
|
90
|
+
:action: ensure_line_is_present
|
|
91
|
+
:line: ['<root level', '=', '"info">']
|
|
78
92
|
-
|
|
79
93
|
:name: dhcpd
|
|
80
94
|
:friendly_name: ISC DHCP
|
|
@@ -124,3 +138,19 @@
|
|
|
124
138
|
-
|
|
125
139
|
:action: ensure_line_is_present
|
|
126
140
|
:line: ["server_args", "=", "-v -s /var/lib/tftpboot -m /etc/tftpd.map"]
|
|
141
|
+
-
|
|
142
|
+
:name: redis
|
|
143
|
+
:friendly_name: Redis
|
|
144
|
+
:file: /etc/opt/rh/rh-redis5/redis.conf
|
|
145
|
+
:destinations: "/var/log/redis/redis.log"
|
|
146
|
+
:services: ["rh-redis5-redis"]
|
|
147
|
+
:debug:
|
|
148
|
+
-
|
|
149
|
+
:action: ensure_line_is_present
|
|
150
|
+
:line: ["loglevel", " ", "debug"]
|
|
151
|
+
:join_with: ''
|
|
152
|
+
:production:
|
|
153
|
+
-
|
|
154
|
+
:action: ensure_line_is_present
|
|
155
|
+
:line: ["loglevel", " ", "notice"]
|
|
156
|
+
:join_with: ''
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
:debug:
|
|
31
31
|
-
|
|
32
32
|
:action: ensure_line_is_present
|
|
33
|
-
:line: ["log4j.logger.org.candlepin
|
|
33
|
+
:line: ["log4j.logger.org.candlepin", "=", "DEBUG"]
|
|
34
34
|
:production:
|
|
35
35
|
-
|
|
36
36
|
:action: ensure_line_is_present
|
|
37
|
-
:line: ["log4j.logger.org.candlepin
|
|
37
|
+
:line: ["log4j.logger.org.candlepin", "=", "WARN"]
|
|
38
38
|
-
|
|
39
39
|
:name: pulp
|
|
40
40
|
:friendly_name: Pulp
|
|
@@ -58,6 +58,22 @@
|
|
|
58
58
|
:action: ensure_line_is_present
|
|
59
59
|
:line: ["log_level", ": ", "INFO"]
|
|
60
60
|
:join_with: ''
|
|
61
|
+
-
|
|
62
|
+
:name: pulpcore
|
|
63
|
+
:friendly_name: Pulpcore
|
|
64
|
+
:file: /etc/pulp/settings.py
|
|
65
|
+
:destinations: "syslog"
|
|
66
|
+
:services: ["pulpcore-content", "pulpcore-api", "pulpcore-workers@*"]
|
|
67
|
+
:debug:
|
|
68
|
+
-
|
|
69
|
+
:action: ensure_line_is_present
|
|
70
|
+
:line: [" 'level'", ": ", "'DEBUG',"]
|
|
71
|
+
:join_with: ''
|
|
72
|
+
:production:
|
|
73
|
+
-
|
|
74
|
+
:action: ensure_line_is_present
|
|
75
|
+
:line: [" 'level'", ": ", "'INFO',"]
|
|
76
|
+
:join_with: ''
|
|
61
77
|
-
|
|
62
78
|
:name: virt-who
|
|
63
79
|
:friendly_name: Virt-who utility
|
|
@@ -96,9 +96,9 @@ module HammerCLIForemanAdmin
|
|
|
96
96
|
action[:file] = file
|
|
97
97
|
end
|
|
98
98
|
func = action_functions[action_name.to_sym]
|
|
99
|
-
if func
|
|
99
|
+
if func
|
|
100
100
|
logger.info "Processing #{name} action #{action_name}"
|
|
101
|
-
func.call(action)
|
|
101
|
+
func.call(action) unless option_dry_run?
|
|
102
102
|
else
|
|
103
103
|
raise "Unknown action #{action_name} for component #{name}"
|
|
104
104
|
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# English translations for hammer-cli-foreman-admin package.
|
|
2
|
+
# Copyright (C) 2016 THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
+
# This file is distributed under the same license as the hammer-cli-foreman-admin package.
|
|
4
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
|
5
|
+
#
|
|
6
|
+
msgid ""
|
|
7
|
+
msgstr ""
|
|
8
|
+
"Project-Id-Version: hammer-cli-foreman-admin 0.0.1\n"
|
|
9
|
+
"Report-Msgid-Bugs-To: \n"
|
|
10
|
+
"PO-Revision-Date: 2016-04-13 15:09+0200\n"
|
|
11
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
12
|
+
"Language-Team: English\n"
|
|
13
|
+
"Language: en\n"
|
|
14
|
+
"MIME-Version: 1.0\n"
|
|
15
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
16
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
18
|
+
"\n"
|
|
19
|
+
|
|
20
|
+
#: ../lib/hammer_cli_foreman_admin/admin_command.rb:6
|
|
21
|
+
msgid "Administrative server-side tasks"
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:6
|
|
25
|
+
msgid "Increase verbosity level to debug."
|
|
26
|
+
msgstr ""
|
|
27
|
+
|
|
28
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:7
|
|
29
|
+
msgid "Decrease verbosity level to standard."
|
|
30
|
+
msgstr ""
|
|
31
|
+
|
|
32
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:8
|
|
33
|
+
msgid "Components to apply, use --list to get them."
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:9
|
|
37
|
+
msgid "List available components."
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
40
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:10
|
|
41
|
+
msgid "Apply to all components."
|
|
42
|
+
msgstr ""
|
|
43
|
+
|
|
44
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:11
|
|
45
|
+
msgid "Do not apply specified changes."
|
|
46
|
+
msgstr ""
|
|
47
|
+
|
|
48
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:12
|
|
49
|
+
msgid "Skip configuration backups creation."
|
|
50
|
+
msgstr ""
|
|
51
|
+
|
|
52
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:13
|
|
53
|
+
msgid "Operate on prefixed environment (e.g. chroot)."
|
|
54
|
+
msgstr ""
|
|
55
|
+
|
|
56
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:30
|
|
57
|
+
msgid "Command '%{cmd}' failed: %{e}"
|
|
58
|
+
msgstr ""
|
|
59
|
+
|
|
60
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:120
|
|
61
|
+
msgid "Component"
|
|
62
|
+
msgstr ""
|
|
63
|
+
|
|
64
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:121
|
|
65
|
+
msgid "Auto-detected by existence of"
|
|
66
|
+
msgstr ""
|
|
67
|
+
|
|
68
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:122
|
|
69
|
+
msgid "Destinations"
|
|
70
|
+
msgstr ""
|
|
71
|
+
|
|
72
|
+
#: ../lib/hammer_cli_foreman_admin/logging_command.rb:138
|
|
73
|
+
msgid "Logging verbosity level setup"
|
|
74
|
+
msgstr ""
|
metadata
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hammer_cli_foreman_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lukas Zapletal
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hammer_cli
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
description: Foreman administrative commands plugin for Hammer CLI
|
|
@@ -32,40 +32,40 @@ extra_rdoc_files:
|
|
|
32
32
|
- LICENSE
|
|
33
33
|
- README.md
|
|
34
34
|
files:
|
|
35
|
-
-
|
|
36
|
-
-
|
|
35
|
+
- LICENSE
|
|
36
|
+
- README.md
|
|
37
37
|
- config/cli.modules.d/foreman_admin_logging_core.yml
|
|
38
|
-
-
|
|
39
|
-
-
|
|
38
|
+
- config/cli.modules.d/foreman_admin_logging_katello.yml
|
|
39
|
+
- config/foreman_admin.yml
|
|
40
|
+
- lib/hammer_cli_foreman_admin.rb
|
|
40
41
|
- lib/hammer_cli_foreman_admin/admin_command.rb
|
|
41
42
|
- lib/hammer_cli_foreman_admin/i18n.rb
|
|
42
|
-
- lib/hammer_cli_foreman_admin.rb
|
|
43
|
+
- lib/hammer_cli_foreman_admin/logging_command.rb
|
|
44
|
+
- lib/hammer_cli_foreman_admin/version.rb
|
|
45
|
+
- locale/en/hammer-cli-foreman-admin.edit.po
|
|
43
46
|
- locale/en/hammer-cli-foreman-admin.po
|
|
44
47
|
- locale/hammer-cli-foreman-admin.pot
|
|
45
|
-
- LICENSE
|
|
46
|
-
- README.md
|
|
47
48
|
homepage: https://github.com/theforeman/hammer-cli-foreman-admin
|
|
48
49
|
licenses:
|
|
49
50
|
- GPL-3
|
|
50
51
|
metadata: {}
|
|
51
|
-
post_install_message:
|
|
52
|
+
post_install_message:
|
|
52
53
|
rdoc_options: []
|
|
53
54
|
require_paths:
|
|
54
55
|
- lib
|
|
55
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
57
|
requirements:
|
|
57
|
-
- -
|
|
58
|
+
- - ">="
|
|
58
59
|
- !ruby/object:Gem::Version
|
|
59
60
|
version: '0'
|
|
60
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
62
|
requirements:
|
|
62
|
-
- -
|
|
63
|
+
- - ">="
|
|
63
64
|
- !ruby/object:Gem::Version
|
|
64
65
|
version: '0'
|
|
65
66
|
requirements: []
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
signing_key:
|
|
67
|
+
rubygems_version: 3.1.4
|
|
68
|
+
signing_key:
|
|
69
69
|
specification_version: 4
|
|
70
70
|
summary: Foreman administrative commands plugin
|
|
71
71
|
test_files: []
|