Skip to content

Commit de080d9

Browse files
committed
secure lita config
1 parent ce35c51 commit de080d9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/puppet/parser/functions/typecast.rb

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# typecast.rb
33
#
44

5+
# Mostly taken from the lita chef module: https://github.com/litaio/chef-lita
6+
57
module Puppet::Parser::Functions
68
newfunction(:typecast, :type => :rvalue, :doc => <<-EOS
79
This outputs ruby argumentsects attempting to maintain their format to be read in from

manifests/bot.pp

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
file { "${bot_dir}/lita_config.rb":
4545
owner => 'lita',
4646
group => 'lita',
47+
mode => '0440',
4748
content => template('lita/lita_config.rb.erb'),
4849
notify => Service["lita_${_name}"],
4950
}

0 commit comments

Comments
 (0)