Project

General

Profile

Download (319 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / app / views / foreman / unattended / snippets / _jenkins_instance_pubkey.erb @ be52ca64

1
echo "running jenkins_pubkey snippet"
2
mkdir -p /root/.ssh
3
touch /root/.ssh/authorized_keys || exit
4
echo "<%= @host.params['foreman_pipeline_jenkins_pubkey']%>" >> /root/.ssh/authorized_keys
5

    
6
<% if @host.operatingsystem.name.match(/centos/i) -%>
7
restorecon -R -v /root/.ssh
8
<% end -%>
9

    
10
echo "jenkins_pubkey snippet done"