Closed Bug 911270 Opened 12 years ago Closed 11 years ago

fix up warnings from puppetmasters

Categories

(Infrastructure & Operations :: RelOps: Puppet, task)

x86_64
Linux
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: arich)

References

Details

Attachments

(2 files, 2 obsolete files)

We have a number of variables in ERB that don't start with @, warnings from concatfragments about empty chunks, etc. Nothing harmful, but they should get fixed.
Assignee: dustin → relops
Severity: enhancement → normal
I'm going to try to break this up in multiple patches and do the bits I can with the knowledge I have. I'm not quite sure about the reference to screen_depth.to_i and screen_depth in modules/gui/templates/xvfb.conf.erb, so please validate those, especially.
Assignee: relops → arich
Attachment #8408498 - Flags: review?(dustin)
Attachment #8408498 - Attachment is patch: true
Attachment #8408498 - Attachment mime type: text/x-patch → text/plain
Comment on attachment 8408498 [details] [diff] [review] clean up variable syntax to add missing @ in erb tempates Looks good. I made a test run on Ubuntu and didn't see anything change.
Attachment #8408498 - Flags: review?(dustin) → review+
Attachment #8408498 - Flags: checked-in+
something here is in production
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
backed out [root@tst-linux32-spot-561.test.releng.usw2.mozilla.com ~]# apt-get update E: Malformed line 2 in source list /etc/apt/sources.list.d/precise-security.list (dist) E: The list of sources could not be read. [root@tst-linux32-spot-561.test.releng.usw2.mozilla.com ~]# cat /etc/apt/sources.list.d/precise-security.list # Managed by puppet deb http://puppetagain-apt.pvt.build.mozilla.org/repos/apt/ubuntu
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 8408498 [details] [diff] [review] clean up variable syntax to add missing @ in erb tempates Review of attachment 8408498 [details] [diff] [review]: ----------------------------------------------------------------- ::: modules/packages/templates/sources.list.erb @@ +6,3 @@ > -%> > # Managed by puppet > +deb http://<%= @apt_repo_server %>/<%= @url_path -%> <%= @suffix %> suffix here is a template-local variable, so it doesn't get the @
Attachment #8408498 - Flags: checked-in+ → checked-in-
Attached patch bug911270.patchSplinter Review
updated version
Attachment #8408498 - Attachment is obsolete: true
Attachment #8409009 - Flags: checked-in+
Merged to prod, and I'm seeing Notice: /Stage[packagesetup]/Packages::Setup/Packages::Aptrepo[precise]/File[/etc/apt/sources.list.d/precise.list]/content: --- /etc/apt/sources.list.d/precise.list 2014-04-18 09:28:03.830800999 -0700 +++ /tmp/puppet-file20140418-2910-1tgxesu-0 2014-04-18 09:40:02.178986589 -0700 @@ -1,2 +1,2 @@ # Managed by puppet -deb http://puppetagain-apt.pvt.build.mozilla.org/repos/apt/ubuntu +deb http://puppetagain-apt.pvt.build.mozilla.org/repos/apt/ubuntu precise main restricted universe so this looks good.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached file a few more variable syntax fixes (obsolete) —
I missed a few variable warnings in the first round. This should get more (hopefully the rest).
Attachment #8409104 - Flags: review?(dustin)
fixes more variable syntax errors and adds a default motd to concat to.
Attachment #8409104 - Attachment is obsolete: true
Attachment #8409104 - Flags: review?(dustin)
Attachment #8409117 - Flags: review?(dustin)
Comment on attachment 8409117 [details] [diff] [review] fixes more variable syntax errors and adds a default motd to concat to. Review of attachment 8409117 [details] [diff] [review]: ----------------------------------------------------------------- ::: modules/motd/manifests/base.pp @@ +21,2 @@ > target => $motd::settings::motd_file, > + content => "Unauthorized access prohibited" This will need a trailing newline, or the next line will end up on top of it ::: modules/users/templates/homeclean.sh.erb @@ +38,5 @@ > { > mkdir -p ${BASE} > chmod 0700 ${BASE} > + # OS X doesn't update mtime on a chmod > + touch ${BASE} Did you mean to mix this hunk in, too? If so, it should be mentioned in the commit message.
Attachment #8409117 - Flags: review?(dustin) → review+
newlins added, homeclean change already checked into default as part of a different patch (but that's what I get for not having multiple repos checked out). This bit is now checked into default as well.
merged to production
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: