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

Condor id fix, better tests and puppet-lint fixes #33

Merged
merged 6 commits into from
Oct 17, 2014

Conversation

kreczko
Copy link
Member

@kreczko kreczko commented Oct 17, 2014

Condor ID is now set only if uid/gid > 0:

<% if @condor_user == 'root' and @condor_group == 'root' -%>
CONDOR_IDS = 0.0
<% elsif @condor_uid.to_i > 0 and @condor_gid.to_i > 0 -%>
CONDOR_IDS = <%= @condor_uid %>.<%= @condor_gid %>
<% end -%>

@fschaer @kashif74 is that OK?

This pull request also includes better tests:
bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'
is executed on travis. I would like to make it default for all HEP-Puppet modules. What do you think?
It will need more documentation (e.g show the requirements [1]). Everything else is added to make the tests pass (syntax + layout)

[1]
gem install rspec rspec-puppet bundler puppet puppetlabs_spec_helper puppet-lint

@fschaer
Copy link
Contributor

fschaer commented Oct 17, 2014

Hi,

I’m away for now, but this seems ok to me … ?

@kashif74
Copy link
Member

It looks fine to me.

@kreczko
Copy link
Member Author

kreczko commented Oct 17, 2014

OK, I will merge it, but first I am going to create a release/tag just in case.
I am updating our cluster this and next week and want to get all improvements back into the repo.

kreczko added a commit that referenced this pull request Oct 17, 2014
Condor id fix, better tests and puppet-lint fixes
@kreczko kreczko merged commit 6b5e3e6 into HEP-Puppet:master Oct 17, 2014
@kreczko kreczko deleted the condor-id-fix branch February 10, 2016 10:20
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.

None yet

3 participants