Foreman: Creating Organization & Location With Hammer

Let’s learn how to create an organization and location on Foreman/Satellite server using the hammer command-line-interface. In this example, I’m going to create an organization called: Operation and assign its location to Boston. On the Foreman server, excute the following commands: [root@foreman ~]# hammer organization create --name Operations Organization created. [root@foreman ~]# hammer location create --name Boston Location created. [root@foreman ~]# hammer organization add-location --name Operations \ > --location Boston The location has been associated....

March 7, 2021 · 1 min · 188 words · kenno

Enable Foreman Ansible Plugin

When I setup Foreman (Satellite) server, I didn’t have Ansible support enabled. Here is how it can be done later on. If we only need Ansible support, it’s sufficient to just run this command: # foreman-installer \ --enable-foreman-plugin-ansible \ --enable-foreman-proxy-plugin-ansible Just a note for myself, I also need Remote Execution enabled if I want to run Ansible playbooks as Job Templates. # foreman-installer \ --enable-foreman-plugin-remote-execution \ --enable-foreman-proxy-plugin-remote-execution-ssh Note that the remote execution feature is enabled by default on Foreman/Satellite server....

March 6, 2021 · 1 min · 102 words · kenno