b4dfd0fa4d
This change started out as a quick update to RHEL 7 support (aka systemd), in the process I realized most of the other platforms could use an update. While trying to cleanup there I discovered I was repeating of bunch of information that might be better maintained in one place - as a result: * consolidated server.sh and install.sh * removed upstart-join.conf in a favor of join flag in the consul start * removed platform specific folders and increased complexity of install.sh to include handling the differences * updated and extracted consul version * added a consistent ip_table.sh file to open ports on firewalls * updating consul service management configurations to enable proper restarting behavior for each platform * the configuration naming convention is <distro_origin>_file_name * added platform to the security group name so you can easily launch multpile platforms at once * fixes #1304 |
||
---|---|---|
.. | ||
scripts | ||
README.md | ||
consul.tf | ||
outputs.tf | ||
variables.tf |
README.md
Running the aws templates to set up a consul cluster
The platform variable defines the target OS, default is ubuntu, rhel6 is an option
For AWS provider, set up your AWS environment as outlined in https://www.terraform.io/docs/providers/aws/index.html
To set up ubuntu based, run like below, replace key_name and key_path with actual values
terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem'
or
terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem' -var 'platform=ubuntu'
To run rhel6, run like below
terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem' -var 'platform=rhel6'
For centos6 platform, for the default AMI, you need to accept the AWS market place terms and conditions. When you launch first time, you will get an error with an URL to accept the terms and conditions.