aws-opsworks

Using Ruby 2.0 on Amazon OpsWorks

时光总嘲笑我的痴心妄想 提交于 2019-12-09 06:22:20
问题 I'd like to use Ruby 2.0 on Amazon OpsWorks, so I'm trying the following: Choose custom cookbooks and set them to my fork of https://github.com/aws/opsworks-cookbooks Update all version numbers here https://github.com/aws/opsworks-cookbooks/blob/master/ruby/attributes/ruby.rb to 2.0 values. This doesn't seem to have any effect, though. Do custom cookbooks override their built in counterparts? Does OpsWorks use the Ruby recipe from the cookbook for basic Ruby setup? The same question applies

opsworks rails.env does not match custom json rails_env

混江龙づ霸主 提交于 2019-12-08 07:40:41
问题 In my Nginx/Unicorn Opsworks environment i've set our custom JSON rails_env attribute to "opsworks" { "deploy": { "myapp": { "rails_env": "opsworks" } } But when I go into the Rails console and run Rail.env Rails returns "development". Opsworks is starting Unicorn under the opsworks environment but Rails seems to be running in development. The log directory contains logs for both development and opsworks. Any thoughts on what i'm doing wrong? 回答1: What you are doing is setting up RAILS_ENV

Cannot output the url of my beanstalk

天涯浪子 提交于 2019-12-08 07:24:32
问题 I am having a problem with outputting beanstalk url in my cloudformation: Here is my outputcode: Outputs: ELB: Description: 'The environment name' Value: !GetAtt BeansEnvironmentUI.EndpointURL But what I see in the output in the url of loadbalancer: awseb-e-k-AWSEBLoa-NP5ZWGTVP2FV-1714896666.us-east-1.elb.amazonaws.com This is not what I want. When I look at the beanstalk console itself I see the following: myenv.prejvvvgq2.us-east-1.elasticbeanstalk.com which is what I am looking for. So

Cannot output the url of my beanstalk

天涯浪子 提交于 2019-12-07 08:26:27
I am having a problem with outputting beanstalk url in my cloudformation: Here is my outputcode: Outputs: ELB: Description: 'The environment name' Value: !GetAtt BeansEnvironmentUI.EndpointURL But what I see in the output in the url of loadbalancer: awseb-e-k-AWSEBLoa-NP5ZWGTVP2FV-1714896666.us-east-1.elb.amazonaws.com This is not what I want. When I look at the beanstalk console itself I see the following: myenv.prejvvvgq2.us-east-1.elasticbeanstalk.com which is what I am looking for. So here is the format of the above url: [nameOftheEnvironment].

Failing To Find Chef Community Cookbooks Using Chef 12 On AWS Opsworks

送分小仙女□ 提交于 2019-12-06 00:09:13
The Problem When running custom cookbooks on AWS OpsWorks a setup_failed status appears against the instance and the following in the failure log: [2016-03-26T22:53:48+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /var/chef One version per cookbook data_bags at /var/chef/runs/62832572-cb67-421a-8309-d831140d7b98/data_bags nodes at /var/chef/runs/62832572-cb67-421a-8309-d831140d7b98/nodes [2016-03-26T22:53:48+00:00] INFO: Forking chef instance to converge... [2016-03-26T22:53:48+00:00] INFO: *** Chef 12.7.2 *** [2016-03-26T22:53:48+00:00] INFO: Chef-client pid:

How can I set the log output level for Chef on Amazon OpsWorks?

风流意气都作罢 提交于 2019-12-05 02:37:41
问题 My question is similar to: How can I display the output of a Opscode Chef bash command in my console? I want to be able to see console output for my running recipe. In particular, my recipe failed to start JBoss because JAVA_HOME was not being set. It took me an entire day to figure this out because the statement JAVA_HOME is undefined was not being printed to the Chef output. When running chef solo, debugging output can be turned on by appending -l debug to the command, as in: chef-solo -c

Whenever gem on aws opsworks

谁都会走 提交于 2019-12-05 02:31:50
问题 Does anyone have experience/success using the whenever gem on aws opsworks? Is there a good recipe? Can I put that recipe on a separate layer and associate one instance with that additional layer? Or is there a better way to do it? Thanks!!! EDIT: We ended up doing it a bit differently... Code: Can’t really post the real code, but it’s like this: in deploy/before_migrate.rb: [:schedule].each do |config_name| Chef::Log.info("Processing config for #{config_name}") begin template "#{release_path

Chef - How to run a cookbook locally

五迷三道 提交于 2019-12-04 05:29:30
问题 I'm just getting started with Chef and have gone through the tutorials on their site, however everything seems to assume you'd be configuring a chef server etc. for the deploy I'm currently in the process of setting up a site on AWS opsworks so I wanted to use Chef for the configuration and installing dependencies. As such I believe I just supply a path to my cookbook. Now before I launch into Opsworks I was trying to create my cookbook on an ubuntu VM and test that it installs everything

How to fix PG::DuplicatePstatement: ERROR?

£可爱£侵袭症+ 提交于 2019-12-04 01:49:43
I would like to know how to prevent this type of error. So far I tried disabling prepared statements via the database configuration at AWS Opsworks: Eg: Database Configuration }, "deploy": { "app_name": { "database": { "adapter": "postgresql", "prepared_statements": false, "username": "username", "database": "db_name_production", "host": "cool_host.com", "password": "easy" }, Error Log PG::DuplicatePstatement: ERROR: prepared statement "a6" already exists : INSERT INTO "polls" ("answer_type", "auto_enable", "can_have_correct_answer", "created_at", "de", "en", "es", "event_id", "game_card

How can I set the log output level for Chef on Amazon OpsWorks?

大憨熊 提交于 2019-12-03 20:19:39
My question is similar to: How can I display the output of a Opscode Chef bash command in my console? I want to be able to see console output for my running recipe. In particular, my recipe failed to start JBoss because JAVA_HOME was not being set. It took me an entire day to figure this out because the statement JAVA_HOME is undefined was not being printed to the Chef output. When running chef solo, debugging output can be turned on by appending -l debug to the command, as in: chef-solo -c solo.rb -j node.json -l debug However, when using Amazon OpsWorks, there is no such option: sudo