counsyl / puppet-sys Goto Github PK
View Code? Open in Web Editor NEWPuppet module for general operating system and essential program management.
License: Other
Puppet module for general operating system and essential program management.
License: Other
Release 0.9.23 doesn't seem to have been uploaded to the forge, latest release there is 0.9.22.
sys::Luks would want to install cryptsetup-luks:
class sys::luks::params {
case $::osfamily {
debian: {
$package = 'cryptsetup'
}
redhat: {
$package = 'cryptsetup-luks'
}
default: {
fail("Do not know how to install LUKS on ${::osfamily}.\n")
}
}
}
It works for RHEL6 but for RHEL7 it should be "cryptsetup" instead of "cryptsetup-luks" because puppet doesn't do "yum install cryptsetup-luks" which redirects to "cryptsetup" but does a list first (/bin/yum -d 0 -e 0 -y list cryptsetup-luks) which does not redirect just fails as there is no package called "cryptsetup-luks" any more.
This is either a puppet-sys issue or a powershell provider issue, unclear:
with the recent powershell module fix to support the timeout parameter of exec
, execution of sys::fetch
fails with the default timeout
of '0'
:
Debug: /Stage[main]/Windows::Nssm/Sys::Fetch[download-nssm]/Exec[fetch-download-nssm]/creates: Checking that 'creates' path 'C:\ProgramData\installers\nssm-2.24.zip' exists
Error: Failure waiting for PowerShell process 6044 to start pipe server
Error: /Stage[main]/Windows::Nssm/Sys::Fetch[download-nssm]/Exec[fetch-download-nssm]/returns: change from 'notrun' to ['0'] failed: Failure waiting for PowerShell process 6044 to start pipe server (corrective)
0 should be unlimited, but, since it is a string, powershell provider interprets it as a non-false value (my guess). When overriden like this, everything works:
Sys::Fetch{
timeout => 120, # a smaller number also works
}
# 0 doesn't seem to work though, unclear why.
404 encountered when downloading epel rpm to install epel on centos 7.
Browsing the repository it appears that the only available version is now 7.8.
Partial output of puppet run follows:
Error: Execution of '/bin/rpm -i http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm' returned 1: curl: (22) The requested URL returned error: 404 Not Found
error: skipping http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm - transfer failed
Error: /Stage[main]/Sys::Redhat::Epel/Package[epel-release-7-6]/ensure: change from absent to present failed: Execution of '/bin/rpm -i http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm' returned 1: curl: (22) The requested URL returned error: 404 Not Found
error: skipping http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm - transfer failed
[puppetserver] Puppet Unknown variable: 'sys::zsh::params::source'. (file: /etc/puppetlabs/code/environments/production/modules/sys/manifests/zsh.pp, line: 8, column: 15)
[puppetserver] Puppet Unknown variable: 'sys::zsh::params::provider'. (file: /etc/puppetlabs/code/environments/production/modules/sys/manifests/zsh.pp, line: 9, column: 15)
I am having an issue using this module with strict_variables
enabled.
Error: Evaluation Error: Unknown variable: 'sys::unzip::params::source'. at /home/josh/dotfiles/puppet/ext_modules/sys/manifests/unzip.pp:8:15
At present puppetlabs-stdlib latest is 5.2.0. Please update to support newest version. :)
ie:
Warning: Module 'puppetlabs-stdlib' (v5.2.0) fails to meet some dependencies:
'counsyl-sys' (v0.9.23) requires 'puppetlabs-stdlib' (>= 4.7.0 <5.0.0)
Thx
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.