Questions tagged [foreman]

The Foreman is a complete lifecycle management tool for physical and virtual servers.

Filter by
Sorted by
Tagged with
1 vote
1 answer
117 views

Foreman - Using Global / Host Variables in YAML Config

I'm having a little trouble working with the Global Variables in Foreman. I have a global variable called ALLOW_AD_USERS which I can see in the facts section against the host. I'm trying to use this ...
user avatar
  • 341
0 votes
2 answers
96 views

Best way to provisionning CentOS

I began my new work, it's in a small infrastructure but they often provisionning new virtual machines under CentOS. Currently they used template in VMWare VCenter but it's just a clone and when they ...
user avatar
1 vote
1 answer
781 views

foreman.facts in ansible playbook

Iam using the foreman.py script for creating a dynamic inventory. How can I use the collected facts from the foreman.facts file in my ansible playbooks? ll /etc/ansible/foreman* -rw-r--r--. 1 root ...
user avatar
  • 11
0 votes
1 answer
42 views

How to monitor hosts with foreman when there's only one-way traffic allowed?

I am currently setting up a PoC with foreman to monitor the configuration of some hosts. This works great. I am wondering, how could I monitor hosts in our DMZ? Where only one way traffic is allowed (...
user avatar
1 vote
0 answers
59 views

Foreman manifest - Trigger action on Puppet class parameters change

I am new to Puppet and I do support a small windows environment with mostly web services and console apps, all managed by Foreman/Puppet. I've managed to write several manifests, which keep those ...
user avatar
  • 23
2 votes
1 answer
2k views

virt-manager vm console requires password

I have just started learning foreman. I added a KVM host to the foreman as a compute resource. I can now provision VMs from foreman now but I cannot view the console of the VMs that are provisioned ...
user avatar
  • 61
1 vote
0 answers
1k views

libvirt connection as non-root user

I'm trying to configure a libvirt compute resource in Foreman and have both KVM and Foreman installed on the same Centos 7 host. Adding the compute resource with qemu+ssh://root@hypervisor.example....
user avatar
  • 35
0 votes
2 answers
989 views

Q: How to define Apache modules via Puppet and Hiera?

I am currently using Puppet with Foreman 1.17 and puppetlabs/apache version 3.1.0. All virtual hosts are defined using a .yaml file: apache::vhost: vm12345_ssl: servername: my.example.com ...
user avatar
  • 1,336
2 votes
0 answers
126 views

Foreman chrashed with runtime error

In my foreman/katello installation I have the following error message: Web application could not be started (RuntimeError) /opt/theforeman/tfm/root/usr/share/gems/gems/ffi-1.4.0/lib/ffi/library....
user avatar
  • 802
1 vote
1 answer
112 views

WinPE as installation tool

I have succesfully created a WinPE image which includes a simple script to auto-install windows. This image is used to boot via PXE. As soon as WinPE is "booted" it asks the server which windows image ...
user avatar
  • 143
1 vote
1 answer
829 views

Using Foreman's host groups in hiera.yaml :hierarchy section

Does anyone know how to set a correct path in :hierarchy section of hiera.yaml config to apply configuration to Foreman's host groups? I tried to use this settings with %{::hostgroup} variable, but it ...
user avatar
  • 683
0 votes
1 answer
1k views

Puppet not pulling Hiera value

Learning Puppet and Hiera and I've run into a roadblock. I apologize in advance if this is something simple. Given the following files within my GitLab for the PuppetClass es_strat: hiera.yaml --...
user avatar
  • 1
2 votes
1 answer
1k views

Remove Host from Foreman

In Foreman 1.12 I deleted a VM from the VMware web client, but cannot delete its record from foreman. I got the below error: Error: Failed to destroy a compute VMware (VMware) instance *************:...
user avatar
  • 33
1 vote
0 answers
685 views

Foreman DNS proxy does not set records

I am building a foreman puppet infrastructure in my test lab, all setup components were installed through puppet (modules: forman-puppet, foreman-forman, forman-foreman_proxy, foreman-dns). ...
user avatar
0 votes
1 answer
572 views

Foreman smart-proxy Microsoft DHCP unknown error 5

I have a Foreman smart client version 1.15.0 running on Windows Server 2016, which I am trying to use for managing Windows DHCP servers with Foreman. When I try to populate the DHCP leases with the ...
user avatar
0 votes
2 answers
1k views

SOLVED - Unable to install foreman-proxy on CentOS 6.9

Puppet [root@ns1 ~]# puppet --version 4.10.1 Repositories (used Foreman 1.12 as the next versions are not supported in Centos 6) [root@ns1 ~]# yum repolist enabled Loaded plugins: fastestmirror ...
user avatar
0 votes
1 answer
902 views

Foreman/Katello with ansible

Im just going nuts with the ansible plugin for foreman/katello. https://theforeman.org/plugins/foreman_ansible/1.x/index.html I just installed as described. When I run ansibl-playbook, I get the ...
user avatar
1 vote
1 answer
1k views

Foreman and Configuration Manager/SCCM for deployment

I recently have been made a Windows sysadmin in our place of work after many years as a client admin. For the past 5 I have been the lead on Configuration Manager/SCCM (up to the most recent current ...
user avatar
0 votes
1 answer
465 views

How to automatically set the domain of a host interface in Foreman

I'm currently using Foreman to discover nodes on the network, and to provision bare metal servers. When a node is discovered, and I "Provision" it through the Foreman UI, I always have to specify ...
user avatar
3 votes
2 answers
3k views

How can I test that a reboot has completed?

I'm currently building an infrastructure management tool that provisions bare metal and VM's etc. We have a worker VM that runs commands(via ansible) on the remote nodes over SSH. One of the steps ...
user avatar
0 votes
1 answer
209 views

Debian 8 + Foreman Not Loading

I'm working on giving foreman a try, I installed it on Debian 8 per the tutorial on the site. However, when I try to load foreman I get: Sinatra doesn’t know this ditty. # in usr/share/foreman-...
user avatar
  • 229
0 votes
1 answer
1k views

Issue with adding foreman host, receive reverse dns error message, possible rndc.key issue

This is a new install of foreman/puppet using a postgresql backend. When attempting to add a new host (or update an existing one using our imported previous DB hosts) the following error is seen in ...
user avatar
0 votes
1 answer
520 views

Can Foreman allow anonymous read-only access?

I need an automated job to perform REST API calls against Foreman and would much rather not bother setting up an account for it -- and then forever maintain the password. However, it appears, Foreman ...
user avatar
  • 2,232
2 votes
1 answer
4k views

How to query Foreman for hosts with a specific Global Parameter?

We make some use of the Global Parameters in Foreman, and I need to list all hosts, which have the Global Parameter foo set to "bar". Can I do that with the REST API or via some other method? Going ...
user avatar
  • 2,232
0 votes
2 answers
185 views

Foreman: List VMs of a compute reourse

From Satellite 6/Foreman GUI, I can get the full list of VMs running on a compute resource. However, I cannot find a relevant command in hammer-cli. Do I miss something, or I just can't do it with ...
user avatar
  • 802
1 vote
2 answers
3k views

Katello/Foreman: unable to syncronize products or install software

I have configured foreman with katello scenario and previously configured and synced some repositories and content views (for Red Hat 5 server). Suddenly, after running some synchronization tasks, ...
user avatar
0 votes
1 answer
1k views

Foreman/Katello error with product synchronization

We have Foreman 1.12.4 w Katello 3.1 installed on Centos 7.2 After a small error with pip in which yum-controlled software was updated and broke our Katello install, I rolled back as best I could ...
user avatar
  • 339
1 vote
0 answers
802 views

Satellite 6/Foreman: Cannot manage DHCP/DNS with libvirt

I have a Satellite 6 server on my test environment installed as a VM in a CentOS 7 box. I have configured the CentOS KVM as a Compute Resource and host provisioning (without any Capsule/Foreman Proxy) ...
user avatar
  • 802
0 votes
2 answers
120 views

Foreman: How to test if the deployment is on Bare Matal or in Libvirt?

I write a custom Kickstart as a Foreman provisioning template. One of my problems is that I haven't found a way to determine if the new host will be installed on a bare metal or on a Hypervisor. The @...
user avatar
  • 802
2 votes
2 answers
4k views

Foreman: How to test/render provisioning templates

I have installed Foreman in a test VM and I want to create some custom kickstart files. I understand that Foreman renders the templates during the host creation. But in case of an error, type, ...
user avatar
  • 802
2 votes
0 answers
289 views

Foreman trying to install bootloader on sda vs sdi/sdj software raid

I have 35 servers, most of them (~25ish) installed with no problems whatsoever, but the others are giving me grief about not being able to install the bootloader. I'm running Foreman 1.12.3 and CentOS ...
user avatar
  • 31
0 votes
1 answer
1k views

Puppet Run giving Error: failed to execute puppetrun: ERF12-4252

So as in the title, whenever I try to "Run Puppet" from Foreman I get the following error in the GUI. This was all due to, in the beginning a configuration error, where activemq needed to be set up. ...
user avatar
0 votes
1 answer
274 views

foreman puppet manage 100's of servers without logging in each device

I want to know is there a way to manage hundreds of servers in foreman. Let's say I have 100 machines. In each machine, OS is already installed and ssh is accessible. Now I want to install a ...
user avatar
  • 109
0 votes
1 answer
767 views

Manage debian servers packages with Foreman

Is there some way how i can manage packages in debian using foreman, for example when new updates are available it will tell me and i have to approve it first before installing... i checked Katello ...
user avatar
  • 166
0 votes
2 answers
699 views

Foreman on Centos 7: how to list hosts with Package X installed

We tried very hard to install and love Spacewalk without success. So we moved to Satellite 6, which on Centos 7 is the Foreman/Katello/Pulp/Candlepin combo. It's all set up fine, and we are using it ...
user avatar
  • 339
0 votes
0 answers
57 views

Unable to install foreman in ubuntu 12.04

I am trying to install foreman in ubuntu 12.04, After adding apt source and executing foreman-installer command giving me the below error. /usr/lib/ruby/vendor_ruby/kafo/puppet_module_parser.rb:21:in ...
user avatar
  • 109
0 votes
1 answer
1k views

Is it possible to have an isc-dhcp server and a foreman proxy on the same network ?

I'm trying to setup a foreman service in my homelab to replace my current manually managed KVM solution. As part of this, I'm trying to get deployment working and the DHCP and DNS proxies working. I'm ...
user avatar
0 votes
0 answers
968 views

Can't run foreman-installer on CentOS 7

I'm trying to install foreman on CentOS 7 to work with Puppet 4.5. After performing all the steps from the manual I can't run foreman-installer. [vagrant@puppetmaster ~]$ sudo foreman-installer Could ...
user avatar
1 vote
0 answers
805 views

Ubuntu 16.04, Dell R320 & preseed install via "The Foreman"

After lots of trial & error I've finally given up on the "SATA RAID" the R320 provides, and resorted to using AHCI mode. Partitioning/Provisioning work fine, but on the next boot the machine ...
user avatar
  • 1,037
1 vote
1 answer
906 views

Creating new environments in Puppet with Foreman does not work

I am new to Puppet and Foreman. I have installed Puppet with Foreman on a Ubuntu LTS 14.04 Server. I connect some Clients and change the Hostgroups. That works all fine. But now I want to create a new ...
user avatar
  • 13
0 votes
2 answers
946 views

Can Foreman register a new host with Active Directory?

We use Foreman and Puppet to manage our Unix systems here, but the Kerberos infrastructure is implemented over Active Directory (because Exchange). Registering the newly bootsrapped hosts with AD is ...
user avatar
  • 2,232
1 vote
1 answer
2k views

Foreman provisioning stuck in "Pending Installation" 409 Conflict on all installs

I'm testing Foreman but all the VMs I've created get stuck in a boot loop unless I manually disable PXE boot. In the UI i see the machine as "Pending Installation" even after the puppet agent reports ...
user avatar
0 votes
2 answers
666 views

Retrieving Audit & Reports from Foreman

I have a Foreman 1.9.0 system using postgres as the back end on RHEL 7.2. A requirement has come up to be able to send the audit log and reports to an external entity in near real time (5-10 minute ...
user avatar
  • 23
1 vote
1 answer
421 views

soekris net6501, PXE, foreman & boot order

I'm trying to provision Ubuntu 16.04 to a soekris net6501 via foreman. The process itself actually now works quite well. One thing that doesn't quite do what we want is the step after provisioning. ...
user avatar
  • 1,037
0 votes
1 answer
685 views

Foreman change autosign behavior

We have setup foreman in our infrastructure and started adding the first hosts. Now, after the setup is done, we'd like to change the default autosign behaviour we set with --puppet-autosign when ...
user avatar
  • 101
3 votes
0 answers
531 views

puppet master is not executing autosign script

I have created a shell script to autosign Puppet certificate requests at /etc/puppet/autosign.sh and have configured this path in the puppet master's configuration. autosign = /etc/puppet/...
user avatar
  • 31
9 votes
2 answers
886 views

Immutable Server model with Docker/Ansible vs. Ansible, Puppet, and Foreman in AWS?

We are running into an interesting argument and are falling into two camps. I'm interested in any particular problems with either idea or gotchas we might be missing. Really, anything that can help us ...
user avatar
1 vote
0 answers
337 views

How to manage clusters with foreman/puppet

I need to deploy i.e. three distinct Zookeeper clusters. Each server inside a cluster should be configured to know what its ID is (and create a myid file). Also every Zookeeper server needs to know a ...
user avatar
  • 113
1 vote
0 answers
563 views

foreman, DHCP smart proxy, network set-up

How would I go about setting foreman up so it hands out a lease to any machine I connect to one of its interfaces using a private IP in the 192.168-range during provisioning, but to supply the client ...
user avatar
  • 1,037
1 vote
0 answers
405 views

Periodical changes in Remote Host Identification (SSH) on CentOS 6

I have this following error when I tried to connect using SSH: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@...
user avatar
  • 11