Skip to content

Commit

Permalink
images: Make sure /etc/hosts and /etc/hostname exist in RHEL derivatives
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Aug 20, 2024
1 parent 28767d2 commit 5ddee12
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 0 deletions.
7 changes: 7 additions & 0 deletions images/almalinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,13 @@ packages:
- aaarch64

actions:
- trigger: post-unpack
action: |-
#!/bin/sh
# Make sure we have our template targets
touch /etc/hosts
touch /etc/hostname
- trigger: post-unpack
action: |-
#!/bin/sh
Expand Down
7 changes: 7 additions & 0 deletions images/amazonlinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ packages:
action: install

actions:
- trigger: post-unpack
action: |-
#!/bin/sh
# Make sure we have our template targets
touch /etc/hosts
touch /etc/hostname
- trigger: post-packages
action: |-
#!/bin/sh
Expand Down
7 changes: 7 additions & 0 deletions images/centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,13 @@ packages:
- aaarch64

actions:
- trigger: post-unpack
action: |-
#!/bin/sh
# Make sure we have our template targets
touch /etc/hosts
touch /etc/hostname
- trigger: post-unpack
action: |-
#!/bin/sh
Expand Down
7 changes: 7 additions & 0 deletions images/openeuler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,13 @@ packages:
- aarch64

actions:
- trigger: post-unpack
action: |-
#!/bin/sh
# Make sure we have our template targets
touch /etc/hosts
touch /etc/hostname
- trigger: post-unpack
action: |-
#!/bin/sh
Expand Down
7 changes: 7 additions & 0 deletions images/oracle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ packages:
- cloud

actions:
- trigger: post-unpack
action: |-
#!/bin/sh
# Make sure we have our template targets
touch /etc/hosts
touch /etc/hostname
- trigger: post-packages
action: |-
#!/bin/sh
Expand Down
7 changes: 7 additions & 0 deletions images/rockylinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ packages:
- aaarch64

actions:
- trigger: post-unpack
action: |-
#!/bin/sh
# Make sure we have our template targets
touch /etc/hosts
touch /etc/hostname
- trigger: post-unpack
action: |-
#!/bin/sh
Expand Down
7 changes: 7 additions & 0 deletions images/springdalelinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,13 @@ packages:
- x86_64

actions:
- trigger: post-unpack
action: |-
#!/bin/sh
# Make sure we have our template targets
touch /etc/hosts
touch /etc/hostname
- trigger: post-unpack
action: |-
#!/bin/sh
Expand Down

0 comments on commit 5ddee12

Please sign in to comment.