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

set default port for firewall #191

Merged
merged 1 commit into from
Oct 26, 2014
Merged

Conversation

cristifalcas
Copy link
Contributor

Since port parameter seems to be missing from init.pp, use the same logic to determin it as in cli_helper.pp

@rtyler
Copy link

rtyler commented Sep 29, 2014

@cristi1979 could I convince you to write some rspec-puppet for this change? That way we make sure we don't break it in the future

@jenkinsadmin
Copy link

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@rtyler
Copy link

rtyler commented Sep 30, 2014

It looks like this pull request has inadvertently grown a new commit, ruh roh!

@cristifalcas
Copy link
Contributor Author

sorry, i will do a new pull request for this

Since port parameter seems to be missing from init.pp, use the same logic to determin it as in cli_helper.pp

add possibility to disable/uninstall plugins

- add possibility to disable/uninstall plugins.
- move $plugins_host outside of if block, as it looks identical for both cases.
- rename all occurrences of ${name}.hpi with ${plugin}

For uninstall/disable, there are 2 ifs added, each with 2 execs (one for jpi an one for hpi)

  if ($version == 'absent' or $version == 'uninstall') {
   test -f ${plugin_dir}/${plugin}  && rm -rf ${name} ${plugin} ${name}.jpi ${name}.jpi.pinned && touch ${name}.jpi.disabled
   test -f ${plugin_dir}/${name}.jpi -a ! -f ${plugin_dir}/${name}.jpi.disabled && touch ${plugin_dir}/${name}.jpi.disabled
} elsif ($version == 'disable' or $version == 'disabled') {
   test -f ${plugin_dir}/${name}.jpi -a ! -f ${plugin_dir}/${name}.jpi.disabled  && touch ${plugin_dir}/${name}.jpi.disabled
   test -f ${plugin_dir}/${plugin} -a ! -f ${plugin_dir}/${plugin}.disabled         && touch ${plugin_dir}/${plugin}.disabled
} else {
}

update firewall
@cristifalcas
Copy link
Contributor Author

Hi, I did a rebase with only the firewall commit.

@rtyler rtyler added this to the 1.3.0 - Bernard milestone Oct 6, 2014
@rtyler
Copy link

rtyler commented Oct 26, 2014

I'm going to merge this and then do some refactoring in master, thanks

rtyler pushed a commit that referenced this pull request Oct 26, 2014
set default port for firewall
@rtyler rtyler merged commit 72752a9 into voxpupuli:master Oct 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants