voxpupuli / puppet-rclocal Goto Github PK
View Code? Open in Web Editor NEWPuppet module to manage rc.local
License: Apache License 2.0
Puppet module to manage rc.local
License: Apache License 2.0
Upstream systemd change seems to have broken the rc-local service running on CentOS Linux release 7.8.2003 (Core).
rc-local service start without error
Error: Systemd start for rc-local failed!
journalctl log for rc-local:
-- Logs begin at Fri 2020-08-28 10:55:18 CDT, end at Fri 2020-08-28 13:49:46 CDT. --
Aug 28 13:49:46 cbizfile2 systemd[1]: [/etc/systemd/system/rc-local.service:11] Support for option SysVStartPriority has been removed and it is ignored
Aug 28 13:49:46 file2 systemd[1]: Starting rc.local Compatibility...
Aug 28 13:49:46 file2 systemd[11961]: Failed at step STDOUT spawning /etc/rc.d/rc.local: Inappropriate ioctl for device
Aug 28 13:49:46 file2 systemd[1]: rc-local.service: control process exited, code=exited status=209
Aug 28 13:49:46 file2 systemd[1]: Failed to start rc.local Compatibility.
Aug 28 13:49:46 file2 systemd[1]: Unit rc-local.service entered failed state.
Aug 28 13:49:46 file2 systemd[1]: rc-local.service failed.
Error: /Stage[main]/Rclocal/Service[rc-local]/ensure: change from 'stopped' to 'running' failed: Systemd start for rc-local failed!
journalctl log for rc-local:
-- Logs begin at Fri 2020-08-28 10:55:18 CDT, end at Fri 2020-08-28 13:49:46 CDT. --
Aug 28 13:49:46 file2 systemd[1]: [/etc/systemd/system/rc-local.service:11] Support for option SysVStartPriority= has been removed and it is ignored
Aug 28 13:49:46 file2 systemd[1]: Starting rc.local Compatibility...
Aug 28 13:49:46 file2 systemd[11961]: Failed at step STDOUT spawning /etc/rc.d/rc.local: Inappropriate ioctl for device
Aug 28 13:49:46 file2 systemd[1]: rc-local.service: control process exited, code=exited status=209
Aug 28 13:49:46 file2 systemd[1]: Failed to start rc.local Compatibility.
Aug 28 13:49:46 file2 systemd[1]: Unit rc-local.service entered failed state.
Aug 28 13:49:46 file2 systemd[1]: rc-local.service failed.
(corrective)
I'm upgrading the modules in our site's Puppetfile and was upgrading this module from v2.0.5 to v2.0.7. It caused the following error:
Error: /File[/var/opt/lib/pe-puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Permission denied - /etc/puppetlabs/puppet/environments/feature_PUP439_tecontrol/modules/rclocal/metadata.json
Error: /File[/var/opt/lib/pe-puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppetsandbox.tycoelectronics.net/pluginfacts: Error 400 on SERVER: Permission denied - /etc/puppetlabs/puppet/environments/feature_PUP439_tecontrol/modules/rclocal/metadata.json
Comparing the file permissions of metadata.json for the two releases:
v2.0.5:
-r--r--r-- 1 root root 931 Oct 25 2013 metadata.json
v2.0.7:
-r-------- 1 root root 521 Aug 18 09:45 metadata.json
The change in metadata.json file permissions is causing this issue.
I would put in a PR to change this, but you haven't included metadata.json in this repo. You must be adding it when publishing the module to the Forge.
Thanks.
Hi,
In Debian and Ubuntu the service name for rc.local is rc-local.service, not rc.local.service. I verified this for Debian Stretch, Buster and Bullseye and Ubuntu Bionic, Groovy, Focal and Hirsute.
Regards, Martijn
Hey this looks like it's exactly what I need, but I don't know how to use it. What's an example?
I want to add the git-awareness to the users shell with this:
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
PS1='[\u@\h \W]$(__git_ps1 " (%s)")$ '
Thanks!
This PR should fix it..
#11
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Resource type not found: RedHat (file: /etc/puppetlabs/code/environments/production/modules/rclocal/manifests/params.pp, line: 12, column: 5) (file: /etc/puppetlabs/code/environments/production/manifests/xx.pp, line: 1062) on xyz
Successful run on puppet version 5.x
Errors like:
Resource type not found: RedHat at [..]modules/rclocal/manifests/params.pp:12:5
and
Error while evaluating a Function Call, hiera() can only be called using the 4.x function API
I'd expect systemd management of a unit file to run systemctl daemon-reload
to load the new unit file.
There is not execution of systemctl daemon-reload
.
Thanks for writing the module but i have problem on using this module works in my settings.
i have download and save the puppet-rclocal inside /etc/puppet/modules. Then in the one of my custom module i added
class custome::test {
include rclocal
rclocal::script { "my_script":
priority => "10",
content => "#just a comment",
}
}
but when i try to apply the manifest, it throws the following error.
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class rclocal
Thanks for your help.
Kit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.