Jira (PUP-10926) Cloudinit support for Puppet 6 onwards

26 views
Skip to first unread message

Vijay Kumar (Jira)

unread,
Feb 18, 2021, 12:37:04 PM2/18/21
to puppe...@googlegroups.com
Vijay Kumar created an issue
 
Puppet / Improvement PUP-10926
Cloudinit support for Puppet 6 onwards
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: Support Script
Created: 2021/02/18 9:36 AM
Priority: High High
Reporter: Vijay Kumar

Dear Puppet Team,

Hope you are doing well. Thank you for amazing support. We love puppet. It helps us to automate our infrastructure. We need a bit of support to further automate the provisioning of the servers a bit more.

Currently, we use Cloud-Init to provide initial configuration of the server such as add usernames, ssh-keys and others. Cloud-init also has Puppet Module which automatically installs puppet and set up the puppet-agent configuration which helps that the users such that they don't have to manually install the puppet and edit the /etc/hosts to provide the puppetserver IP Address.

Problem:

Cloud init installs the puppet version 4 which is outdated.

Possible Workaround

Use cloud-init write-files to create a script which download the puppet package from the Repository and install that. However, This requires creation of script which has to be OS-independent. For instance for Debian, Ubuntu download from apt.puppetlabs.com and for Centos/Redhat download from yum.puppetlabs.com.

Request

Would it be possible for the Puppet Team to support Puppet 6/7 via cloud-init? Probably, we need changes in the cc_puppet.py which currently installs Puppet 4.

Inclusion of Puppet 6 in Cloud-init would help the provision of the servers and automatic install of puppet.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Feb 18, 2021, 1:08:02 PM2/18/21
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Labels: community

Vijay Kumar (Jira)

unread,
Feb 18, 2021, 8:15:03 PM2/18/21
to puppe...@googlegroups.com
Vijay Kumar updated an issue
Change By: Vijay Kumar
Priority: High Normal

Steve Shipway (Jira)

unread,
Apr 30, 2021, 5:11:03 AM4/30/21
to puppe...@googlegroups.com
Steve Shipway commented on Improvement PUP-10926
 
Re: Cloudinit support for Puppet 6 onwards

The cc_puppet.py currently shipped with RHEL7/Centos7 can support Puppet6, but not by its default configuration.  You need to give additional options similar to:

 

puppet
  install: true
  version: 6.12.0
  package_name: 'puppet-agent'
  conf_file: '/etc/puppetlabs/puppet/puppet.conf' 

Alternatively, if you have your puppet agent installed in your base image (which is preferable) then you can put "install: false" and omit the "version:" option.

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Ciprian Badescu (Jira)

unread,
Jun 22, 2021, 10:21:01 AM6/22/21
to puppe...@googlegroups.com
Ciprian Badescu assigned an issue to Beth Glenfield
 
Change By: Ciprian Badescu
Assignee: Beth Glenfield

Steve Shipway (Jira)

unread,
Jun 22, 2021, 9:21:03 PM6/22/21
to puppe...@googlegroups.com
 
Re: Cloudinit support for Puppet 6 onwards

Suggested fix:

  • Update cc_puppet.py as shipped with the various distros to use  Puppet6 as a default configuration.  This might be hard to get pushed out though
  • Allow all puppet.conf settings to be set via the puppet cloud-init configuration
  • Add an option to allow an immediate puppet run to be scheduled
  • Update documentation to show the above method to make cc_puppet.py work with puppet 6

Beth Glenfield (Jira)

unread,
Jun 23, 2021, 5:36:03 AM6/23/21
to puppe...@googlegroups.com
Beth Glenfield assigned an issue to Unassigned
 
Change By: Beth Glenfield
Assignee: Beth Glenfield

Ciprian Badescu (Jira)

unread,
Jul 6, 2021, 10:53:02 AM7/6/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Team: Night's Watch

Ciprian Badescu (Jira)

unread,
Jul 6, 2021, 10:54:03 AM7/6/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW-2021-08-11

Ciprian Badescu (Jira)

unread,
Jul 28, 2021, 4:42:03 AM7/28/21
to puppe...@googlegroups.com
Ciprian Badescu commented on Improvement PUP-10926
 
Re: Cloudinit support for Puppet 6 onwards

will update puppet versions to default configuration to puppet 6 and allow to install puppet 7and the existing configuration options should work

Ciprian Badescu (Jira)

unread,
Jul 28, 2021, 4:43:03 AM7/28/21
to puppe...@googlegroups.com

Gabriel Nagy (Jira)

unread,
Jul 29, 2021, 4:58:04 AM7/29/21
to puppe...@googlegroups.com
Gabriel Nagy assigned an issue to Gabriel Nagy
Change By: Gabriel Nagy
Assignee: Gabriel Nagy

Gabriel Nagy (Jira)

unread,
Aug 2, 2021, 11:13:04 AM8/2/21
to puppe...@googlegroups.com

Update cc_puppet.py as shipped with the various distros to use Puppet6 as a default configuration. This might be hard to get pushed out though

This should be done, however I decided to default to puppet7 since that is the newest release stream that we support (this setting is now configurable via the collection key). The Ubuntu cloud images seem to be updated once every few months with the latest cloud-init code, so I think this will be achievable.

Allow all puppet.conf settings to be set via the puppet cloud-init configuration

From what I have tested this is already possible via the conf key. Let me know if I'm missing anything.

Add an option to allow an immediate puppet run to be scheduled

This should be done and can be achieved by setting exec to true. Default puppet agent arguments can be overridden with the exec_args key.

Update documentation to show the above method to make cc_puppet.py work with puppet 6

Documentation should be updated in the branch above. I added more configurable settings so it would be great if you could take a look and let me know what you think. I have validated the module manually, next steps are to update the unit tests and submit a PR.

Gabriel Nagy (Jira)

unread,
Aug 4, 2021, 5:07:02 AM8/4/21
to puppe...@googlegroups.com

Steve Shipway (Jira)

unread,
Aug 4, 2021, 6:32:03 PM8/4/21
to puppe...@googlegroups.com

Hi Gabriel Nagy - this looks great, and ticks all the boxes for our requirements (configuration, later versions of puppet, and triggering an initial puppet run during cloud-init rather than just starting the service)..  Looking forward to seeing this in the official releases (might be a while until it gets into Centos7 though).  Thanks for doing such a thorough job of it all, including the detailed docs

Reply all
Reply to author
Forward
0 new messages