Skip to content

Commit

Permalink
Merge pull request #343 from kenyon/fix-fact-script-mode
Browse files Browse the repository at this point in the history
facts.pp: use less restrictive mode for the external fact script
  • Loading branch information
ekohl authored Feb 14, 2021
2 parents 540c609 + 935864c commit dc8adc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/facts.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
file { "/etc/${dir}facter/facts.d/jira_facts.rb":
ensure => $ensure,
content => template('jira/facts.rb.erb'),
mode => '0500',
mode => '0755',
}
}
2 changes: 1 addition & 1 deletion spec/classes/jira_facts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
pe_external_fact_file = '/etc/puppetlabs/facter/facts.d/jira_facts.rb'
external_fact_file = '/etc/puppetlabs/facter/facts.d/jira_facts.rb'

it { is_expected.to contain_file(external_fact_file) }
it { is_expected.to contain_file(external_fact_file).with_mode('0755') }
it { is_expected.to compile.with_all_deps }

# Test puppet enterprise shebang generated correctly
Expand Down

0 comments on commit dc8adc1

Please sign in to comment.