Comments (4)
Yes, we worked around this in our installer using a hook combined with code here:
puppet-puppet/manifests/server/config.pp
Lines 168 to 179 in 9421bd4
I was a bit scared to automate too much here. For example, if the puppetserver is down, will the agent continue correctly? In our installer it's safe because it's essentially "just" a serverless Puppet agent run, but in complex environments it often isn't so clear.
I'd love to hear some more suggestions on how to deal with this.
from puppet-puppet.
I am trying to do the upgrade as part of a regular agent run, not using the foreman-installer, which means puppet is managing puppet. What I can state for sure is that as-is, this results in puppetserver breaking. I am not sure if solving that needs to be automated. I think the only way for this to work is for the puppetserver to be stopped during the agent run with the transition module. This should be acceptable as puppetserver doesn't generally need to be accessible by the agent after the catalog has been downloaded. I suppose it might result in the agent report being lost if the puppetserver is still down at the end of the agent run.
from puppet-puppet.
So you're advocating for something like:
transition { 'stop puppetserver service':
resource => Service['puppetserver'],
attributes => { ensure => stopped },
prior_to => Exec['migrate Puppetserver cadir'],
}
We've used puppetlabs-transition
in the past and I'd be ok with that. However, I am currently quite busy so I have little time to work it out. PRs are welcome.
from puppet-puppet.
In #873 we're dropping Puppet 6 support, including the migration. I don't think we're going to get to this anymore.
from puppet-puppet.
Related Issues (20)
- please Allow puppetlabs/stdlib 7.x HOT 1
- puppet module is unusable at sites that do not have a compatible ::systemd namespace HOT 2
- camptocamp-systemd is deprecated HOT 2
- CONFIG setting in /etc/default/puppetserver isn't managed
- server::config class references wrong variable for additional_settings HOT 1
- SSL cert isn't created for compilers HOT 3
- missing dependency in metdata.json (theforeman-git) HOT 3
- incorrect handle of runinterval in agent/service/systemd.pp breaks catalog compilation HOT 3
- Ubuntu Focal fails to set max open file limit
- Make reporturl configurable
- Disable Dropsonde telemetry
- Please release new module version v16.3.0
- FreeBSD puppetserver gem-home is missing the system Gem.dir HOT 4
- Add support for sensitive config
- Add support for enabling unauthentacated access to metrics endpoint HOT 1
- Sync up with upstream naming (`master`->`server`) HOT 1
- missing CRL `put` from `puppetserver/conf.d/auth.conf` HOT 1
- Add support for local PuppetDB on every Puppet server HOT 1
- stdlib 9.x.x compat HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-puppet.