Jira (PUP-10671) Add server runmode and alias

14 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Sep 15, 2020, 7:33:03 PM9/15/20
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Task PUP-10671
Add server runmode and alias
Issue Type: Task Task
Assignee: Unassigned
Created: 2020/09/15 4:32 PM
Priority: Normal Normal
Reporter: Josh Cooper

Add "server" run mode that behaves like "master"

It should be possible to set the run mode (eg in an external application) using the "server" or "master" run mode.

Update applications in puppet to use the "server" run mode as neeed, such as "puppet lookup".

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

Josh Cooper (Jira)

unread,
Sep 28, 2020, 3:50:03 PM9/28/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Night's Watch

Mihai Buzgau (Jira)

unread,
Sep 30, 2020, 5:12:04 AM9/30/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: NW - 2020-10-14

Mihai Buzgau (Jira)

unread,
Sep 30, 2020, 5:12:04 AM9/30/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Story Points: 3

Gabriel Nagy (Jira)

unread,
Oct 5, 2020, 5:16:04 AM10/5/20
to puppe...@googlegroups.com
Gabriel Nagy assigned an issue to Gabriel Nagy
Change By: Gabriel Nagy
Assignee: Gabriel Nagy

Josh Cooper (Jira)

unread,
Oct 6, 2020, 5:46:04 PM10/6/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 6.19.0

Josh Cooper (Jira)

unread,
Oct 6, 2020, 5:46:04 PM10/6/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Oct 7, 2020, 2:40:05 PM10/7/20
to puppe...@googlegroups.com
Josh Cooper commented on Task PUP-10671

One thing that I missed prior to merging the PR, is that settings adds a section to its searchpath based on the run mode. This is what enables puppetserver running in :master run mode to load settings from the [master] section. As a result of the switch to :server run mode, then applications like puppet lookup will no longer read settings from [:master]. So I think we need to add logic to https://github.com/puppetlabs/puppet/blob/e06b87a71b09e7598182c9753f6151bd4155e659/lib/puppet/settings.rb#L833 such that if run_mode is :server or :master, then we add sections for both, in that order, so that :server takes precedence over :master.

One way to test is to run puppet config set environment_timeout unlimited --section master and then run the following script:

require 'puppet'
Puppet.initialize_settings
app = Puppet::Application[:lookup]
puts Puppet.run_mode.inspect
puts Puppet[:environment_timeout]

It should print that it's using the :server run mode and that the timeout is Infinity. I'm not sure if you want to fix this in this ticket or create a new one.

Josh Cooper (Jira)

unread,
Oct 8, 2020, 11:44:04 PM10/8/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Oct 12, 2020, 5:32:04 PM10/12/20
to puppe...@googlegroups.com
Josh Cooper commented on Task PUP-10671

Passed CI in 836ee7ec4a

Reply all
Reply to author
Forward
0 new messages