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

FreeBSD support for /bin/puppet_install.sh #76

Open
lesinigo opened this issue Jan 30, 2017 · 1 comment
Open

FreeBSD support for /bin/puppet_install.sh #76

lesinigo opened this issue Jan 30, 2017 · 1 comment

Comments

@lesinigo
Copy link

BSD is currently "not supported" by the install script.

TL;DR: if you want FreeBSD support in a single script for all operating systems it must be made sh-compatibile, at least for the FreeBSD code path, or require a FreeBSD system where someone or something pre-installed bash. You will also have to live with facter2 at least for some time or compile relevant packages from the port collections (on every node, or just on one node and distribute your own binary packages).

Here are some relevant info:

An sh-compatibile unattended Puppet OpenSource installation on FreeBSD using its package system (with Facter2) boils down to this (the bootstrap and update phases are required if it is a fresh install where pkg has not been used before):

#!/usr/bin/env sh
export ASSUME_ALWAYS_YES=YES
pkg bootstrap
pkg update
pkg install puppet4

This will install the agent and the master (configured to run in mongrel) with the appropriate rc scripts to start them at boot (disabled by default).

We are using a variant of that script to set up production FreeBSD-11-RELEASE systems and as far as I can tell they integrate without problems with a Puppet Collections 1 server running on linux, but we are also considering switching to building it through ports to get the newer facter3.

@alvagante
Copy link
Member

Thanks for the info, will remain as reference for who wants/needs to implement it via a PR (eventually using sh instead of bash, as long as nothing breaks).
Or I will do it as when possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants