If you are used to changing /etc/sysconfig/network
to set the hostnames in your chef scripts then think again for CentOS 7
to find out your hostname
hostnamectl
or for more information
hostnamectl status
You should get something like:-
Static hostname: vps418175.ovh.net Icon name: computer-vm Chassis: vm Machine ID: 41227fcee63d4c579f21e742e4225972 Boot ID: 10ffc5cab25c4fd58013480cef27bcff Virtualization: kvm Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-514.21.1.el7.x86_64 Architecture: x86-64
to permanently change your hostname
hostnamectl set-hostname Your-Hostname --static