Closed
Bug 911270
Opened 12 years ago
Closed 11 years ago
fix up warnings from puppetmasters
Categories
(Infrastructure & Operations :: RelOps: Puppet, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: arich)
References
Details
Attachments
(2 files, 2 obsolete files)
12.59 KB,
patch
|
dustin
:
checked-in+
|
Details | Diff | Splinter Review |
2.62 KB,
patch
|
dustin
:
review+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Updated•12 years ago
|
Assignee: dustin → relops
Severity: enhancement → normal
Assignee | ||
Comment 2•11 years ago
|
||
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)
Reporter | ||
Updated•11 years ago
|
Attachment #8408498 -
Attachment is patch: true
Attachment #8408498 -
Attachment mime type: text/x-patch → text/plain
Reporter | ||
Comment 3•11 years ago
|
||
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+
Reporter | ||
Updated•11 years ago
|
Attachment #8408498 -
Flags: checked-in+
Reporter | ||
Comment 4•11 years ago
|
||
something here is in production
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 5•11 years ago
|
||
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 → ---
Reporter | ||
Comment 6•11 years ago
|
||
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-
Reporter | ||
Comment 7•11 years ago
|
||
updated version
Attachment #8408498 -
Attachment is obsolete: true
Attachment #8409009 -
Flags: checked-in+
Reporter | ||
Comment 8•11 years ago
|
||
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 ago → 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 9•11 years ago
|
||
I missed a few variable warnings in the first round. This should get more (hopefully the rest).
Attachment #8409104 -
Flags: review?(dustin)
Assignee | ||
Comment 10•11 years ago
|
||
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)
Reporter | ||
Comment 11•11 years ago
|
||
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+
Assignee | ||
Comment 12•11 years ago
|
||
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.
Reporter | ||
Comment 13•11 years ago
|
||
merged to production
Assignee | ||
Updated•11 years ago
|
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•