new file: content/2016-09-06-set-static-hostname-for-rhel-centos-7-on-aws.rst
modified: new_entry.sh
This commit is contained in:
parent
62ac3834c6
commit
f6f62b5149
2 changed files with 23 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
Set static hostname for RHEL Centos 7 on AWS
|
||||
################################################################
|
||||
|
||||
:author: Russell Ballestrini
|
||||
:slug: set-static-hostname-for-rhel-centos-7-on-aws
|
||||
:date: 2016-09-06 11:18
|
||||
:tags: Code, DevOps
|
||||
:status: published
|
||||
|
||||
This took me about 2 hours to figure out, hopefully it saves you time.
|
||||
|
||||
/etc/sysconfig/network::
|
||||
|
||||
HOSTNAME=desired-hostname.example.com
|
||||
|
||||
/etc/hostname::
|
||||
|
||||
desired-hostname.example.com
|
||||
|
||||
/etc/cloud/cloud.cfg::
|
||||
|
||||
preserve_hostname: true
|
||||
|
||||
0
new_entry.sh
Normal file → Executable file
0
new_entry.sh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue