After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744341 - puppet-lint fixes to sysadmins manifest
puppet-lint fixes to sysadmins manifest
Status: RESOLVED INVALID
Product: sysadmin
Classification: Infrastructure
Component: Apprentices
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Sysadmins
GNOME Sysadmins
Depends on:
Blocks:
 
 
Reported: 2015-02-11 17:08 UTC by Joey Stanford
Modified: 2015-02-11 20:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch file for sysadmins manifest (2.39 KB, patch)
2015-02-11 17:10 UTC, Joey Stanford
none Details | Review
Modified patch with quotes as per matayna (2.35 KB, patch)
2015-02-11 18:42 UTC, Joey Stanford
none Details | Review

Description Joey Stanford 2015-02-11 17:08:00 UTC
Hi, I wanted to complete a simple patch as part of my training wheels with the new sysadmins apprentice program. I've created a simple patch for the sysadmins manifest fixing most of the puppet-lint errors.
Comment 1 Joey Stanford 2015-02-11 17:10:52 UTC
Created attachment 296617 [details] [review]
patch file for sysadmins manifest
Comment 2 matanya 2015-02-11 17:26:48 UTC
-1 here. changing 'true' to true is technically correct, but can cause chaos, since you are changing the type of the object from string to bool. If the original comparison was string based, it will break. Did you verify it?
Comment 3 Joey Stanford 2015-02-11 18:02:01 UTC
(In reply to matanya from comment #2)
> -1 here. changing 'true' to true is technically correct, but can cause
> chaos, since you are changing the type of the object from string to bool. If
> the original comparison was string based, it will break. Did you verify it?

Thanks for the review. There are two instances of this in the tree, the one here and also ostree/manifests/init.pp.  The docs on the internet all indicate that managehome should be unquoted but they are quoted in these branches.

puppet --debug --verbose test.pp    returns no errors
puppet parser validate init.pp     returns no errors

I was unable to get a dryrun ("puppet agent --test --noop") to work though:
"err: Could not request certificate: The certificate retrieved from the master does not match the agent's private key."  The help text asks me to "puppet cert clean bastion.gnome.org" which I do not want to attempt.

Thoughts?
Comment 4 matanya 2015-02-11 18:06:24 UTC
You will not be able to run puppet without the needed rights, as puppet checks the cert and the key before running, i don't know the exact setup on gnome, but probably running that with sudo (i you had rights) would work, in the case the cert and key match.
Comment 5 Joey Stanford 2015-02-11 18:42:15 UTC
Created attachment 296627 [details] [review]
Modified patch with quotes as per matayna
Comment 6 matanya 2015-02-11 20:11:57 UTC
This is not what i said :) I asked you to verify there is no string comparison that has managehome == 'true'. If you are sure there is no such case, changing 'true' to true is safe.
Comment 7 Andrea Veri 2015-02-11 20:19:46 UTC
The sysadmin module is currently unused as we manage users through FreeIPA and not through Puppet as mentioned on #sysadmin yesterday. (10th Feb 2015)