Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreman Support #107

Open
orelops opened this issue Apr 19, 2022 · 1 comment
Open

Foreman Support #107

orelops opened this issue Apr 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@orelops
Copy link
Contributor

orelops commented Apr 19, 2022

Use Case

Hi all !
i am using foreman with puppetserver for reports and class management, it might be nice to include it.

Describe the Solution You Would Like

i create a new file named '95-foreman-config.sh' which includes

 # Add node.rb (classes) and foreman.rb (reports)
curl https://raw.githubusercontent.com/theforeman/puppet-puppetserver_foreman/master/files/enc.rb > /etc/puppetlabs/puppet/node.rb
curl https://raw.githubusercontent.com/theforeman/puppet-puppetserver_foreman/master/files/report.rb > /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reports/foreman.rb

# Add config in puppet.conf
reports = puppetdb,foreman
external_nodes = /etc/puppetlabs/puppet/node.rb
node_terminus  = exec

# Create a new configuration file at /etc/puppetlabs/puppet/foreman.yaml 
cat > /etc/puppetlabs/puppet/foreman.yaml << EOF
# Update for your Foreman and Puppet server hostname(s)
:url: "https://foreman.example.com"
:ssl_ca: "/etc/puppetlabs/puppet/ssl/certs/ca.pem"
:ssl_cert: "/etc/puppetlabs/puppet/ssl/certs/puppet.example.com.pem"
:ssl_key: "/etc/puppetlabs/puppet/ssl/private_keys/puppet.example.com.pem"

# Advanced settings
:puppetdir: "/opt/puppetlabs/server/data/puppetserver"
:puppetuser: "puppet"
:facts: true
:timeout: 10
:threads: null
 EOF
chmod +x /etc/puppetlabs/puppet/node.rb

And then i rebuild with the Dockerfile.

@orelops orelops added the enhancement New feature or request label Apr 19, 2022
@Xtigyro
Copy link
Contributor

Xtigyro commented Apr 19, 2022

Thanks for the proposition, @orelops! Please feel free to send our way a PR - I'll be happy to review and merge it, afterwards. 🙇‍♂️

@Xtigyro Xtigyro self-assigned this Apr 19, 2022
@Xtigyro Xtigyro removed their assignment Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants