Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
slapos.package
Commits
75065c04
Commit
75065c04
authored
Oct 23, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors-image-backports: regenerate machine ID
parent
ce62fc6a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
playbook/ors_backport_after
playbook/ors_backport_after
+1
-1
playbook/roles/ors-image-backports/tasks/main.yml
playbook/roles/ors-image-backports/tasks/main.yml
+12
-1
playbook/sha256sum
playbook/sha256sum
+1
-1
No files found.
playbook/ors_backport_after
View file @
75065c04
169
65193
44
169
80592
44
playbook/roles/ors-image-backports/tasks/main.yml
View file @
75065c04
...
...
@@ -25,7 +25,7 @@
# Set cron to repeat ors-image-backports in case someone unplugs the ORS while this playbook is running
-
name
:
Set Cron to repeat until success
cron
:
name="Repeat ors-image-backports until success" minute="*/4" hour="*" job="flock -n /opt/upgrader/ansible.lock -c \"PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ansible-playbook ors-image-backports.yml -i hosts 2>>/opt/upgrader/ors_image_backports.log >> /opt/upgrader/ors_image_backports.log\""
cron
:
name="Repeat ors-image-backports until success" minute="*/4" hour="*" job="flock -n /opt/upgrader/ansible.lock -c \"PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
cd /opt/upgrader/playbook-tmp &&
ansible-playbook ors-image-backports.yml -i hosts 2>>/opt/upgrader/ors_image_backports.log >> /opt/upgrader/ors_image_backports.log\""
-
name
:
Remove obsolete cron
cron
:
name="Launch Upgrader with ansible" state=absent
...
...
@@ -97,6 +97,17 @@
-
name
:
Configure dhcp timeout
lineinfile
:
dest=/etc/dhcp/dhclient.conf regexp="^timeout (.*)" line="timeout 15" state=present
# Reinitialize machine-id for DHCP
-
name
:
Check if machine-id needs to be reinitialized
shell
:
grep -q a3c3a27a44e74547963830b967b5a7ee /etc/machine-id
register
:
reinitialize_machine_id
ignore_errors
:
yes
-
name
:
Reinitialize machine-id at next boot
shell
:
'
echo
uninitialized
>
/etc/machine-id
&&
dpkg-reconfigure
systemd'
when
:
reinitialize_machine_id.rc ==
0
# Configure DNS
-
name
:
Disable dnsmasq service
...
...
playbook/sha256sum
View file @
75065c04
68e37ba0757ae69a82203fd102f83feff6cbd57073d343d4d3f2447e1a105204
-
74b9a1bd7d85f253e5a32b2cfad42c05e6a8589237e85c3f19010c4c7a2294aa
-
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment