Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-2181) Fix variable scope for systemd-override #659

Conversation

kbarber
Copy link
Contributor

@kbarber kbarber commented Jul 1, 2015

$manage_package_repo wasn't in scope. This was causing all RHEL7 systems with
manage_package_repo on to fail on startup using systemctl, since the template
systemd-override.erb relies on that variable in a conditional, to ensure the
correct PGDG path is set.

Signed-off-by: Ken Barber ken@bob.sh

@kbarber kbarber force-pushed the maint/4.4.x/fix_systemd_override_for_manage_package_repo branch from bee45a5 to d931c1f Compare July 1, 2015 13:16
@kbarber
Copy link
Contributor Author

kbarber commented Jul 1, 2015

For reference, before & after this patch: https://gist.github.com/kbarber/f61a654f7cc9b74714e2

@kbarber kbarber force-pushed the maint/4.4.x/fix_systemd_override_for_manage_package_repo branch 2 times, most recently from bbf89ad to 7f11a56 Compare July 1, 2015 14:29
$manage_package_repo wasn't in scope for the template systemd-override.erb
This was causing all RHEL7 systems with manage_package_repo on to fail on
startup using systemctl, as the proper path to the original service file
is set incorrectly.

This patch adds the manage_package_repo to the top of the ::config class,
and adds some basic tests in config_spec.rb to ensure we don't regress on
this.

Signed-off-by: Ken Barber <ken@bob.sh>
@kbarber kbarber force-pushed the maint/4.4.x/fix_systemd_override_for_manage_package_repo branch from 7f11a56 to c21e2e5 Compare July 1, 2015 14:49
@kbarber kbarber changed the title (maint) Fix variable scope for systemd-override (MODULES-2181) Fix variable scope for systemd-override Jul 1, 2015
DavidS added a commit that referenced this pull request Jul 1, 2015
…_for_manage_package_repo

(MODULES-2181) Fix variable scope for systemd-override
@DavidS DavidS merged commit e40f837 into puppetlabs:4.4.x Jul 1, 2015
@DavidS
Copy link
Contributor

DavidS commented Jul 1, 2015

Travis CI got confused here. I tested it locally against puppet 4.

@Ramesh7 Ramesh7 added the bugfix label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants