Hide Forgot
There's no equivalent for this UI action in hammer CLI.
Created from redmine issue http://projects.theforeman.org/issues/3968
Moving to POST since upstream bug http://projects.theforeman.org/issues/3968 has been closed ------------- Anonymous Applied in changeset commit:hammer-cli-foreman|446d00898c3db8be209fbcc7dc98c87a1b5e6168.
Verified with upstream build: foreman-proxy-1.10.0-0.develop.201508250705gitb446e0c.el6.noarch rubygem-smart_proxy_discovery-1.0.2-1.el6.noarch foreman-1.10.0-0.develop.201508241946git8658fa3.el6.noarch foreman-release-1.10.0-0.develop.201508241946git8658fa3.el6.noarch ruby193-rubygem-hammer_cli_import-0.10.21-3.el6.noarch ruby193-rubygem-hammer_cli_foreman-0.3.0-1.201508241205git42d6111.el6.noarch ruby193-rubygem-hammer_cli_foreman_docker-0.0.3-3.el6.noarch ruby193-rubygem-hammer_cli-0.3.0-1.201508241209git174f507.el6.noarch ruby193-rubygem-hammer_cli_foreman_tasks-0.0.7-2.el6.noarch ruby193-rubygem-hammer_cli_foreman_bootdisk-0.1.3-2.el6.noarch ruby193-rubygem-hammer_cli_katello-0.0.17-1.el6.noarch build-pxe-default cmd is updated below: [root@cloud-qe-4 ~]# hammer -u admin -p changme template --help Usage: hammer template [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND subcommand [ARG] ... subcommand arguments Subcommands: add-operatingsystem Associate an operating system build-pxe-default Update the default PXE menu on all configured TFTP servers create Create a provisioning template delete Delete a provisioning template dump View config template content. info Show provisioning template details kinds List available config template kinds. list List provisioning templates remove-operatingsystem Disassociate an operating system update Update a provisioning template [root@cloud-qe-4 ~]# hammer -u admin -p changeme template build-pxe-default PXE Default file has been deployed to all Smart Proxies [root@cloud-qe-4 ~]# [root@cloud-qe-4 tftpboot]# cd pxelinux.cfg/ [root@cloud-qe-4 pxelinux.cfg]# ll total 4 -rw-r--r--. 1 foreman-proxy foreman-proxy 537 Aug 31 07:18 default [root@cloud-qe-4 pxelinux.cfg]# rm -rf default [root@cloud-qe-4 pxelinux.cfg]# hammer -u admin -p changeme template build-pxe-default PXE Default file has been deployed to all Smart Proxies [root@cloud-qe-4 pxelinux.cfg]# ll total 4 -rw-r--r--. 1 foreman-proxy foreman-proxy 537 Aug 31 07:21 default [root@cloud-qe-4 pxelinux.cfg]# pwd /var/lib/tftpboot/pxelinux.cfg [root@cloud-qe-4 pxelinux.cfg]#
Verified as per comment 5
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1501