puppet-apt_dater's People
puppet-apt_dater's Issues
client config doesn't work
I added the following to a node for one of my servers:
class { 'apt_dater':
customer => 'access.homes',
ssh_key_type => 'ssh-rsa',
ssh_key => template('site/apt-dater.pub.key');
}
but puppet fails to run:
root@access:~# puppet agent -tv
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type sudo::directive at /etc/puppet/modules/apt_dater/manifests/host.pp:56 on node access.home
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
ssh key on client can't be added
root@access:~# puppet agent -tv
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for access.home
Error: Failed to apply catalog: Parameter key failed on Ssh_authorized_key[apt-dater-key]: Key must not contain whitespace: AAAAB3NzaC1yc2EAAAABIwAAAQEAmZ5tVJfC+z0nGY+1XnUDAq5MMQTw6yt/C3ijw9Golhy6NlUU4beZ9rqAm+OukOXXrfEj6oVjnRXmzHESSDbt4GNTHqQE3io8siIxdEWqx77IMuvoMjQk9zQApUxLJYqPVoitZMmeSoRv3uvnv5xE8eKu2Pj0Nwz5rAkYIHnK/qK8fbBS75oURz7XvMHjjCCPWu3+4WG5FRJoYTRq5DrOVEScF5kMqkWcUQutAFkl+hehY1MZ9lgBOj5jcVqGVkteQGjDLHXB2jxukODCmSz1a2wdEQZE3OtCHg/cyel4LciDaGBcXNhDyIGK30pUsmEgzV/2E9dNRbai05Qo42WMlw==
at /etc/puppet/modules/apt_dater/manifests/host.pp:51
Wrapped exception:
Key must not contain whitespace: AAAAB3NzaC1yc2EAAAABIwAAAQEAmZ5tVJfC+z0nGY+1XnUDAq5MMQTw6yt/C3ijw9Golhy6NlUU4beZ9rqAm+OukOXXrfEj6oVjnRXmzHESSDbt4GNTHqQE3io8siIxdEWqx77IMuvoMjQk9zQApUxLJYqPVoitZMmeSoRv3uvnv5xE8eKu2Pj0Nwz5rAkYIHnK/qK8fbBS75oURz7XvMHjjCCPWu3+4WG5FRJoYTRq5DrOVEScF5kMqkWcUQutAFkl+hehY1MZ9lgBOj5jcVqGVkteQGjDLHXB2jxukODCmSz1a2wdEQZE3OtCHg/cyel4LciDaGBcXNhDyIGK30pUsmEgzV/2E9dNRbai05Qo42WMlw==
as you can see, there are no whitespaces in
AAAAB3NzaC1yc2EAAAABIwAAAQEAmZ5tVJfC+z0nGY+1XnUDAq5MMQTw6yt/C3ijw9Golhy6NlUU4beZ9rqAm+OukOXXrfEj6oVjnRXmzHESSDbt4GNTHqQE3io8siIxdEWqx77IMuvoMjQk9zQApUxLJYqPVoitZMmeSoRv3uvnv5xE8eKu2Pj0Nwz5rAkYIHnK/qK8fbBS75oURz7XvMHjjCCPWu3+4WG5FRJoYTRq5DrOVEScF5kMqkWcUQutAFkl+hehY1MZ9lgBOj5jcVqGVkteQGjDLHXB2jxukODCmSz1a2wdEQZE3OtCHg/cyel4LciDaGBcXNhDyIGK30pUsmEgzV/2E9dNRbai05Qo42WMlw==
I've even tried changing the key to "AAAA"
Apt-Dater manager and host installed -> hosts.conf empty
Hello,
I configured apt-dater-manager using the following description:
node 'puppet' {
class { 'apt_dater': role => 'manager', manager_ssh_key => template('site/apt-dater.priv.key'); }
}
Then I added a host
class { 'apt_dater': customer => 'Test', ssh_key_type => 'ssh-rsa', ssh_key => template('site/apt-dater.pub.key'); }
Well, that works already - apt-dater and apt-dater-host are being installed - but if I want to start apt-dater I'm getting this error:
Error on loading config file /root/.config/apt-dater/hosts.conf
The file itself exists:
-rw------- 1 root root 0 Jan 11 22:00 /root/.config/apt-dater/hosts.conf
But the file is empty
How can I add the configured hosts automatically?
Invalid resource type sudo::directive
Hello,
I've got another problem:
I would like to use the apt-dater module.
To do so I included the following:
class { 'apt_dater': customer => 'Test', ssh_key_type => 'ssh-rsa', ssh_key => template('site/apt-dater.pub.key'); }
But if I do puppet agent -t I'm getting this error:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type sudo::directive at /etc/puppet/modules/apt_dater/manifests/host.pp:56 on node pp-test
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
The content of the line is:
sudo::directive { 'apt-dater':
content => "${apt_dater::host_user} ALL=NOPASSWD: ${apt_dater::host_update_cmd}\n";
}
What can I do here?
permissions problems
All your files are 440 permissions. Puppet wouldn't apply this module until I went in and changed all of your files to 444 (granting read to other).
error about any2bool
the init.pp in your module uses any2bool
$bool_reuse_host_user = str2bool($apt_dater::reuse_host_user)
$bool_reuse_ssh = str2bool($apt_dater::reuse_ssh)
This caused puppet to error out when applying. I had to change these to "str2bool" to work
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.