It is highly recommended you use the raw hostnames as generated by EC2/Nova. Trying to change the hostname from Chef is tricky even at the best of times. If you really do want to change it, I would recommend doing it before Chef is bootstrapped in your own provisioning system (cloud-init on EC2, for example).
How to generate random string at end of hostname?
For every node we provision with knife ec2/openstack/etc... we want the hostnames to have a format of:
staticstring-staticstring-randomstring
Example: web-server-hk3dp99x
If the host reboots the name will not change.
For each newly provisioned node the random string will change.
Suggestions on the best approach?
Justin Franks
Lead Operations Engineer
SaaS, Cloud, Data Centers & Infrastructure
Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219
It is highly recommended you use the raw hostnames as generated by
EC2/Nova. Trying to change the hostname from Chef is tricky even at the
best of times. If you really do want to change it, I would recommend doing
it before Chef is bootstrapped in your own provisioning system (cloud-init
on EC2, for example).
How to generate random string at end of hostname?
For every node we provision with knife ec2/openstack/etc... we want the
hostnames to have a format of:
staticstring-staticstring-randomstring
Example: web-server-hk3dp99x
If the host reboots the name will not change.
For each newly provisioned node the random string will change.
Suggestions on the best approach?
Justin Franks
Lead Operations Engineer
SaaS, Cloud, Data Centers & Infrastructure
Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219
It is highly recommended you use the raw hostnames as generated by EC2/Nova. Trying to change the hostname from Chef is tricky even at the best of times. If you really do want to change it, I would recommend doing it before Chef is bootstrapped in your own provisioning system (cloud-init on EC2, for example).
How to generate random string at end of hostname?
For every node we provision with knife ec2/openstack/etc... we want the hostnames to have a format of:
staticstring-staticstring-randomstring
Example: web-server-hk3dp99x
If the host reboots the name will not change.
For each newly provisioned node the random string will change.
Suggestions on the best approach?
Justin Franks
Lead Operations Engineer
SaaS, Cloud, Data Centers & Infrastructure
Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219
It is highly recommended you use the raw hostnames as generated by EC2/Nova. Trying to change the hostname from Chef is tricky even at the best of times. If you really do want to change it, I would recommend doing it before Chef is bootstrapped in your own provisioning system (cloud-init on EC2, for example).
How to generate random string at end of hostname?
For every node we provision with knife ec2/openstack/etc... we want the hostnames to have a format of:
staticstring-staticstring-randomstring
Example: web-server-hk3dp99x
If the host reboots the name will not change.
For each newly provisioned node the random string will change.
Suggestions on the best approach?
Justin Franks
Lead Operations Engineer
SaaS, Cloud, Data Centers & Infrastructure
Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219
It is highly recommended you use the raw hostnames as generated by EC2/Nova. Trying to change the hostname from Chef is tricky even at the best of times. If you really do want to change it, I would recommend doing it before Chef is bootstrapped in your own provisioning system (cloud-init on EC2, for example).
How to generate random string at end of hostname?
For every node we provision with knife ec2/openstack/etc... we want the hostnames to have a format of:
staticstring-staticstring-randomstring
Example: web-server-hk3dp99x
If the host reboots the name will not change.
For each newly provisioned node the random string will change.
Suggestions on the best approach?
Justin Franks
Lead Operations Engineer
SaaS, Cloud, Data Centers & Infrastructure
Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219
It is highly recommended you use the raw hostnames as generated by EC2/Nova. Trying to change the hostname from Chef is tricky even at the best of times. If you really do want to change it, I would recommend doing it before Chef is bootstrapped in your own provisioning system (cloud-init on EC2, for example).
How to generate random string at end of hostname?
For every node we provision with knife ec2/openstack/etc... we want the hostnames to have a format of:
staticstring-staticstring-randomstring
Example: web-server-hk3dp99x
If the host reboots the name will not change.
For each newly provisioned node the random string will change.
Suggestions on the best approach?
Justin Franks
Lead Operations Engineer
SaaS, Cloud, Data Centers & Infrastructure
Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219