<commit_before># brazos default
# set up remote slave build server

group 'jenkins'

user 'jenkins' do
  group 'jenkins'
end


directory "/home/jenkins/.ssh"  do
  mode 00755
  action :create
  recursive true
end

execute 'duplicate keys' do
  #cwd '/home/vagrant/.ssh' # somehow out of synch in templated version, suspect startup.sh issue
  #command 'cp id_rsa* /home/jenkins/.ssh'   # includes authorized hosts
  command 'cp /mnt/shared/keys/* /home/jenkins/.ssh'  # this should be the source - fixes part of problem

end

execute 'authorize jenkins public key' do
  cwd '/home/jenkins/.ssh'
  command 'cat id_rsa.pub >> authorized_keys'   # includes authorized hosts
end

execute 'correct Jenkins directory ownership' do
  command ' chown -R jenkins /home/jenkins &&  \
            chgrp -R jenkins /home/jenkins'
end

#execute 'correct tomcat webapps permissions' do
#  command   'chown -R jenkins /var/lib/tomcat6/webapps &&     \
#             chgrp -R jenkins /var/lib/tomcat6/webapps'    #
#end

# when rebuilding brazos it would be nice to let Jenkins know, if Jenkins is running.<commit_msg>cerebro ssh fix for templated version<commit_after># brazos default
# set up remote slave build server

group 'jenkins'

user 'jenkins' do
  group 'jenkins'
end


directory "/home/jenkins/.ssh"  do
  mode 00755
  action :create
  recursive true
end

execute 'duplicate keys' do
  #cwd '/home/vagrant/.ssh' # somehow out of synch in templated version, suspect startup.sh issue
  #command 'cp id_rsa* /home/jenkins/.ssh'   # includes authorized hosts
  command 'cp /mnt/shared/keys/* /home/jenkins/.ssh'  # this should be the source - fixes part of problem
end

execute 'authorize jenkins public key' do
  cwd '/home/jenkins/.ssh'
  command 'cat id_rsa.pub >> authorized_keys'   # includes authorized hosts
end

execute 'correct Jenkins directory ownership' do
  command ' chown -R jenkins /home/jenkins &&  \
            chgrp -R jenkins /home/jenkins'
end

#execute 'correct tomcat webapps permissions' do
#  command   'chown -R jenkins /var/lib/tomcat6/webapps &&     \
#             chgrp -R jenkins /var/lib/tomcat6/webapps'    #
#end

# when rebuilding brazos it would be nice to let Jenkins know, if Jenkins is running.
{'fraction_non_alphanumeric': 0.09348314606741573, 'fraction_numerical': 0.006292134831460674, 'mean_word_length': 3.2562141491395793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6066250', 'n_tokens_mistral': 752, 'n_tokens_neox': 727, 'n_words': 258}