Revision 1c18dfb2
Added by Justin Sherrill almost 8 years ago
config/import.yml | ||
---|---|---|
1 |
:import: |
|
2 |
:enable_module: true |
config/import/config_macros.yml | ||
---|---|---|
1 |
# spacewalk-macro-name : puppet-fact |
|
2 |
rhn.system.sid : |
|
3 |
rhn.system.profile_name : |
|
4 |
rhn.system.description : |
|
5 |
rhn.system.hostname : '@fqdn' |
|
6 |
rhn.system.ip_address : '@ipaddress' |
|
7 |
rhn.system.ip6_address : '@ipaddress6' |
|
8 |
rhn.system.custom_info(key_name) : |
|
9 |
rhn.system.net_interface.ip_address(eth_device) : '@ipaddress_{NETWORK INTERFACE}' |
|
10 |
rhn.system.net_interface.netmask(eth_device) : '@netmask_{NETWORK INTERFACE}' |
|
11 |
rhn.system.net_interface.ip6_address(eth_device) : '@ipaddress6_{NETWORK INTERFACE}' |
|
12 |
rhn.system.net_interface.ip6_netmask(eth_device) : '@netmask_{NETWORK INTERFACE}' |
|
13 |
rhn.system.net_interface.broadcast(eth_device) : |
|
14 |
rhn.system.net_interface.hardware_address(eth_device) : '@macaddress_{NETWORK INTERFACE}' |
|
15 |
rhn.system.net_interface.driver_module(eth_device) : |
|
16 |
|
config/import/interview_answers.yml | ||
---|---|---|
1 |
# interview-question-key : answer |
|
2 |
# special-strings: |
|
3 |
# #{module_name} == the name of the module being generated |
|
4 |
# |
|
5 |
version : '1.0.0' |
|
6 |
author : 'Red Hat' |
|
7 |
license : 'GPL3' |
|
8 |
summary : "#{module_name}" |
|
9 |
description : "Module #{module_name} created from Sat5 config-channel" |
|
10 |
srcrepo : "" |
|
11 |
learnmore : "" |
|
12 |
fileissues : "" |
|
13 |
|
config/import/role_map.yml | ||
---|---|---|
1 |
# sat5-role-label,sat6-role-name-list |
|
2 |
# _admin_ means "flag any user with this role as an Administrator" |
|
3 |
# |
|
4 |
Satellite-Administrator : [ _admin_ ] |
|
5 |
Organization-Administrator : [ _admin_ ] |
|
6 |
Channel-Administrator : [ ] |
|
7 |
Configuration-Administrator : [ ] |
|
8 |
Monitoring-Administrator : [ ] |
|
9 |
System-Group-Administrator : [ ] |
|
10 |
Activation-Key-Administrator : [ ] |
config_macros.yml | ||
---|---|---|
1 |
# spacewalk-macro-name : puppet-fact |
|
2 |
rhn.system.sid : |
|
3 |
rhn.system.profile_name : |
|
4 |
rhn.system.description : |
|
5 |
rhn.system.hostname : '@fqdn' |
|
6 |
rhn.system.ip_address : '@ipaddress' |
|
7 |
rhn.system.ip6_address : '@ipaddress6' |
|
8 |
rhn.system.custom_info(key_name) : |
|
9 |
rhn.system.net_interface.ip_address(eth_device) : '@ipaddress_{NETWORK INTERFACE}' |
|
10 |
rhn.system.net_interface.netmask(eth_device) : '@netmask_{NETWORK INTERFACE}' |
|
11 |
rhn.system.net_interface.ip6_address(eth_device) : '@ipaddress6_{NETWORK INTERFACE}' |
|
12 |
rhn.system.net_interface.ip6_netmask(eth_device) : '@netmask_{NETWORK INTERFACE}' |
|
13 |
rhn.system.net_interface.broadcast(eth_device) : |
|
14 |
rhn.system.net_interface.hardware_address(eth_device) : '@macaddress_{NETWORK INTERFACE}' |
|
15 |
rhn.system.net_interface.driver_module(eth_device) : |
|
16 |
|
hammer_cli_import.gemspec | ||
---|---|---|
13 | 13 |
spec.description = 'Hammer-CLI-Importer is a plugin for Hammer to import Red Hat Satellite 5 data.' |
14 | 14 |
spec.require_paths = ['lib'] |
15 | 15 |
|
16 |
spec.files = Dir['lib/**/*.rb'] |
|
16 |
spec.files = Dir['config/**/*', 'lib/**/*.rb']
|
|
17 | 17 |
spec.files += ['LICENSE', 'README.md', 'channel_data_pretty.json'] |
18 | 18 |
spec.test_files = [] |
19 | 19 |
|
import.yml | ||
---|---|---|
1 |
:import: |
|
2 |
:enable_module: true |
interview_answers.yml | ||
---|---|---|
1 |
# interview-question-key : answer |
|
2 |
# special-strings: |
|
3 |
# #{module_name} == the name of the module being generated |
|
4 |
# |
|
5 |
version : '1.0.0' |
|
6 |
author : 'Red Hat' |
|
7 |
license : 'GPL3' |
|
8 |
summary : "#{module_name}" |
|
9 |
description : "Module #{module_name} created from Sat5 config-channel" |
|
10 |
srcrepo : "" |
|
11 |
learnmore : "" |
|
12 |
fileissues : "" |
|
13 |
|
role_map.yml | ||
---|---|---|
1 |
# sat5-role-label,sat6-role-name-list |
|
2 |
# _admin_ means "flag any user with this role as an Administrator" |
|
3 |
# |
|
4 |
Satellite-Administrator : [ _admin_ ] |
|
5 |
Organization-Administrator : [ _admin_ ] |
|
6 |
Channel-Administrator : [ ] |
|
7 |
Configuration-Administrator : [ ] |
|
8 |
Monitoring-Administrator : [ ] |
|
9 |
System-Group-Administrator : [ ] |
|
10 |
Activation-Key-Administrator : [ ] |
rubygem-hammer_cli_import.spec | ||
---|---|---|
1 |
%global gemname hammer_cli_import |
|
1 |
%global gem_name hammer_cli_import
|
|
2 | 2 |
%global confdir hammer |
3 | 3 |
%if 0%{?rhel} |
4 | 4 |
%global gem_dir /usr/lib/ruby/gems/1.8 |
... | ... | |
8 | 8 |
%endif |
9 | 9 |
|
10 | 10 |
|
11 |
%global geminstdir %{gem_dir}/gems/%{gemname}-%{version} |
|
12 |
|
|
13 |
Name: rubygem-%{gemname} |
|
11 |
Name: rubygem-%{gem_name} |
|
14 | 12 |
Version: 0.10.20 |
15 | 13 |
Release: 1%{?dist} |
16 | 14 |
Summary: Sat5-import command plugin for the Hammer CLI |
... | ... | |
18 | 16 |
Group: Development/Languages |
19 | 17 |
License: GPLv3 |
20 | 18 |
URL: https://github.com/Katello/hammer-cli-import |
21 |
Source0: %{gemname}-%{version}.gem |
|
22 |
Source1: import.yml |
|
23 |
Source2: role_map.yml |
|
24 |
Source3: config_macros.yml |
|
25 |
Source4: interview_answers.yml |
|
19 |
Source0: %{gem_name}-%{version}.gem |
|
26 | 20 |
|
27 | 21 |
%if 0%{?rhel} > 6 || 0%{?fedora} > 18 |
28 | 22 |
Requires: ruby(release) |
... | ... | |
38 | 32 |
%endif |
39 | 33 |
BuildRequires: ruby |
40 | 34 |
BuildArch: noarch |
41 |
Provides: rubygem(%{gemname}) = %{version} |
|
35 |
Provides: rubygem(%{gem_name}) = %{version}
|
|
42 | 36 |
|
43 | 37 |
%description |
44 | 38 |
Sat5-import plugin for the Hammer CLI |
... | ... | |
60 | 54 |
|
61 | 55 |
%install |
62 | 56 |
mkdir -p %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import |
63 |
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import.yml
|
|
64 |
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import/role_map.yml
|
|
65 |
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import/config_macros.yml
|
|
66 |
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import/interview_answers.yml
|
|
57 |
install -m 755 .%{gem_instdir}/config/import.yml %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import.yml
|
|
58 |
install -m 644 .%{gem_instdir}/config/import/role_map.yml %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import/role_map.yml
|
|
59 |
install -m 644 .%{gem_instdir}/config/import/config_macros.yml %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import/config_macros.yml
|
|
60 |
install -m 644 .%{gem_instdir}/config/import/interview_answers.yml %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import/interview_answers.yml
|
|
67 | 61 |
mkdir -p %{buildroot}%{gem_dir} |
68 | 62 |
cp -pa .%{gem_dir}/* \ |
69 | 63 |
%{buildroot}%{gem_dir}/ |
70 | 64 |
|
71 | 65 |
%files |
72 |
%dir %{geminstdir} |
|
73 |
%{geminstdir}/ |
|
66 |
%dir %{gem_instdir}
|
|
67 |
%{gem_instdir}/
|
|
74 | 68 |
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/import.yml |
75 | 69 |
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/import/role_map.yml |
76 | 70 |
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/import/config_macros.yml |
77 | 71 |
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/import/interview_answers.yml |
78 |
%exclude %{gem_dir}/cache/%{gemname}-%{version}.gem |
|
79 |
%{gem_dir}/specifications/%{gemname}-%{version}.gemspec |
|
72 |
%exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem
|
|
73 |
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
|
|
80 | 74 |
|
81 | 75 |
%files doc |
82 |
%doc %{gem_dir}/doc/%{gemname}-%{version} |
|
76 |
%doc %{gem_dir}/doc/%{gem_name}-%{version} |
|
77 |
%doc %{gem_instdir}/config |
|
83 | 78 |
|
84 | 79 |
%changelog |
85 | 80 |
* Wed Jul 08 2015 Tomas Lestach <tlestach@redhat.com> 0.10.20-1 |
Also available in: Unified diff
refs #9848 - move config files to gem