Created
March 3, 2014 12:38
-
-
Save StephanDollberg/9324109 to your computer and use it in GitHub Desktop.
hammer -v template info --id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[inf@head foreman_version_control]$ hammer -v template info --id 1 | |
[ INFO 2014-03-03 13:36:08 Init] Initialization of Hammer CLI (0.0.18) has started... | |
[ INFO 2014-03-03 13:36:08 Init] Configuration from the file /etc/foreman/cli_config.yml has been loaded | |
[ INFO 2014-03-03 13:36:08 Modules] Extension module hammer_cli_foreman (0.0.18) loaded | |
[ INFO 2014-03-03 13:36:08 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true} | |
[ INFO 2014-03-03 13:36:08 HammerCLIForeman::Template] Called with options: {} | |
[ INFO 2014-03-03 13:36:08 HammerCLIForeman::Template::InfoCommand] Called with options: {"option_id"=>"1"} | |
[DEBUG 2014-03-03 13:36:08 Connection] Registered: foreman_ConfigTemplate | |
[DEBUG 2014-03-03 13:36:08 ForemanApi::Resources::ConfigTemplate] Calling 'show' with params { | |
"id" => "1" | |
} | |
[DEBUG 2014-03-03 13:36:08 ForemanApi::Resources::ConfigTemplate] Method 'show' responded with { | |
"id" => 1, | |
"name" => "PXELinux global default", | |
"template_kind_id" => 1, | |
"template_kind_name" => "PXELinux", | |
"snippet" => false, | |
"audit_comment" => nil, | |
"created_at" => "2014-02-27T13:48:41Z", | |
"updated_at" => "2014-03-03T10:39:05Z", | |
"template" => "<%#\nkind: PXELinux\nname: Community PXE Default\n%>\n\n<%# This template has special name (do not change it) and it is used for booting unknown hosts. %>\n\nDEFAULT menu\nPROMPT 0\nMENU TITLE PXE Menu\nTIMEOUT 200\nTOTALTIMEOUT 6000\nONTIMEOUT local\n\nLABEL local\n MENU LABEL (local)\n MENU DEFAULT\n LOCALBOOT 0\n\n<% for profile in @profiles -%>\nLABEL <%= \"\#{profile[:template]} - \#{profile[:hostgroup]}\" %>\n kernel <%= profile[:hostgroup].operatingsystem.kernel(profile[:hostgroup].architecture) %>\n<% case profile[:hostgroup].operatingsystem.pxe_type -%>\n<% when 'kickstart' -%>\n append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> ks=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ksdevice=bootif network kssendmac\n<% when 'preseed' -%>\n append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> interface=auto url=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ramdisk_size=10800 root=/dev/rd/0 rw auto hostname=unassigned-hostname locale=en_US console-setup/ask_detect=false console-setup/layout=USA console-setup/variant=USA\n<% end -%>\n\n<% end -%>\n", | |
"" => [], | |
"operatingsystems" => [ | |
[0] { | |
"id" => 11, | |
"name" => "Fedora", | |
"fullname" => "Fedora 19" | |
} | |
] | |
} | |
[DEBUG 2014-03-03 13:36:08 HammerCLIForeman::Template::InfoCommand] Retrieved data: { | |
"id" => 1, | |
"name" => "PXELinux global default", | |
"template_kind_id" => 1, | |
"template_kind_name" => "PXELinux", | |
"snippet" => false, | |
"audit_comment" => nil, | |
"created_at" => "2014-02-27T13:48:41Z", | |
"updated_at" => "2014-03-03T10:39:05Z", | |
"template" => "<%#\nkind: PXELinux\nname: Community PXE Default\n%>\n\n<%# This template has special name (do not change it) and it is used for booting unknown hosts. %>\n\nDEFAULT menu\nPROMPT 0\nMENU TITLE PXE Menu\nTIMEOUT 200\nTOTALTIMEOUT 6000\nONTIMEOUT local\n\nLABEL local\n MENU LABEL (local)\n MENU DEFAULT\n LOCALBOOT 0\n\n<% for profile in @profiles -%>\nLABEL <%= \"\#{profile[:template]} - \#{profile[:hostgroup]}\" %>\n kernel <%= profile[:hostgroup].operatingsystem.kernel(profile[:hostgroup].architecture) %>\n<% case profile[:hostgroup].operatingsystem.pxe_type -%>\n<% when 'kickstart' -%>\n append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> ks=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ksdevice=bootif network kssendmac\n<% when 'preseed' -%>\n append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> interface=auto url=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ramdisk_size=10800 root=/dev/rd/0 rw auto hostname=unassigned-hostname locale=en_US console-setup/ask_detect=false console-setup/layout=USA console-setup/variant=USA\n<% end -%>\n\n<% end -%>\n", | |
"" => [], | |
"operatingsystems" => [ | |
[0] { | |
"id" => 11, | |
"name" => "Fedora", | |
"fullname" => "Fedora 19" | |
} | |
], | |
"type" => "PXELinux", | |
"operatingsystem_ids" => [ | |
[0] 11 | |
] | |
} | |
Id: 1 | |
Name: PXELinux global default | |
Type: | |
OS ids: 11 | |
[inf@head foreman_version_control]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment