Changes between Version 80 and Version 81 of InstallationGuidelines/Amazon
- Timestamp:
- 05/29/14 16:51:04 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/Amazon
v80 v81 315 315 In the next step, select the instance of your choice. The t1.micro instance is a good choice if you're eligible for Free Tier. 316 316 317 Next, in the Configure Instance pane, expand the Advanced Details tab and enter the following script in the User-Data field 318 {{{ 319 #!/bin/bash 320 exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 321 322 # Update 323 sudo apt-get update 324 325 # Install git 326 sudo apt-get install git-core 327 328 # Install ansible dependencies 329 sudo apt-get install python-pip python-dev git -y 330 sudo pip install PyYAML jinja2 paramiko 331 332 # Install Ansible 333 sudo pip install ansible 334 335 # Clone bootstrap scripts 336 git clone https://github.com/gnarula/eden_deploy 337 338 # Run the install 339 cd eden_deploy 340 341 echo "Running install script" 342 bash install-eden-cherokee-postgis.sh 343 344 # Run PostgreSQL optimisations for micro instance 345 pg512 346 347 echo "Running configuration script" 348 bash configure-eden-cherokee-postgis.sh -h <hostname> -d <domain> -t <template> 349 350 # Run uWSGI 351 sudo /etc/init.d/uwsgi-prod start 352 }}} 353 354 The configure-eden-cherokee-postgis.sh script takes in three optional parameters. Please replace the placeholders with the appropriate values or remove them from the command in case you'd like to proceed with the default values (domain name being your Instance public dns and opting for the "default" template). 355 356 Note: You may want to change `pg512` to pg1024 if you're running a configuration than what a micro instance has to offer. 317 Next, in the Configure Instance pane, expand the Advanced Details tab and enter the contents of https://github.com/gnarula/eden_playbook/blob/master/user-data.sh in the User-Data field. 357 318 358 319 Moving on to Step 6, create a new security group with a rule for SSH and HTTP as shown in the screenshot below. … … 362 323 Finally, review the configuration and launch the instance. You'll be prompted to select an existing key pair or generate a new one. In case you're a new user or you don't have access to your key, generate a new keypair, save it and proceed. 363 324 364 That's it! Your new instance will have Eden Installed and set up for it to be used as a master node in future deployments. Do note that the deployment takes some time even after the Web UI states the instance as "Running". Logs for the process may be found by sshing into the newly created instance with your key and viewing /var/log/user-data.log365 366 It's important to note that the log file contains a randomly generated password to your PostgreSQL database. We advice you to memorize it and remove it from the logs thereafter.325 That's it! Your new instance will have Eden Installed and set up for it to be used as a master node in future deployments. Do note that the deployment takes some time (~10-12 minutes) even after the Web UI states the instance as "Running". Logs for the process may be found by sshing into the newly created instance with your key and viewing /var/log/user-data.log and /var/log/syslog 326 327 It's important to note that the script generates a random password for the PostgreSQL database and that is automatically saved in 000_config.py during the setup. 367 328 368 329 == Next ==