Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7437711
finish.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
finish.sh
View Options
#!/bin/bash
set
-e
PUPPET_MASTER
=
pergamon
PUPPET_MASTER_FQDN
=
"
$PUPPET_MASTER
.internal.softwareheritage.org"
LOCATION
=
sesi_rocquencourt
cat
>
/etc/apt/sources.list.d/backports.list
<<EOF
deb https://deb.debian.org/debian stretch-backports main
EOF
apt-get
update
apt-get
-y
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
install
-t
stretch-backports
facter
apt-get
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
-y
dist-upgrade
systemctl
disable
puppet.service
mkdir
-p
/etc/facter/facts.d
echo
"location=
$LOCATION
"
>
/etc/facter/facts.d/location.txt
echo
"192.168.100.29
$PUPPET_MASTER_FQDN
$PUPPET_MASTER
"
>>
/etc/hosts
# first time around, this will:
# - update the node's puppet agent configuration defining the puppet master
# - generate the certificates with the appropriate fqdn
# - unfortunately, for now, this fails though, when not being able to
# install the apt-transport-https package
puppet
agent
--server
$PUPPET_MASTER_FQDN
--waitforcert
60
--test
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Tue, Apr 15, 2:21 AM (2 w, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3238788
Attached To
rSPRE sysadm-provisioning
Event Timeline
Log In to Comment