Questions tagged [opsworks]

AWS OpsWorks configures ec2 instances using Chef for Linux and Windows

AWS OpsWorks is an Amazon service that configures Elastic Compute Cloud instances using Chef for Linux and Microsoft Windows Server


76 questions
1
vote
2 answers

OpsWorks environment variables available to PHP CLI

We are deploying a Laravel-based application to AWS using OpsWorks. We have defined environment variables through the OpsWorks console and they are correctly seen by Apache. However, when running CLI tasks such as artisan commands, they are not…
1
vote
1 answer

How to make consistent deployment directory for AWS OpsWorks' S3 archive deployment across each servers?

I'm using S3 archive deployment app to deploy a zip file generated from build process. When I deploy to several servers I notice that the absolute path generated by the deployment are different on each servers. Apparently the path is using the…
Petra Barus
  • 121
  • 1
  • 5
1
vote
1 answer

Chef/Ruby: use "each do" block variable with node attribute

Chef 11.10.4 environment running in AWS Opsworks. I can't figure out how to pass the value of the "each do" block variable, "lyr," below, with the node attribute node['aws-tag'][#{lyr}]? The code block below works from lines 02-06 but NOT from…
Peter M
  • 953
  • 2
  • 14
  • 27
1
vote
1 answer

Assign chef roles to layer/instance

I'm trying to get the following cookbook running in OpsWorks: https://github.com/lusis/chef-logstash/ Following their documentation I have to assign roles to my server(s) to get stuff running. They also gave examples of roles in the wiki. But I'm…
soupdiver
  • 797
  • 2
  • 8
  • 26
1
vote
1 answer

How to use LWRP on in AWS OpsWorks?

Ohai, ist there a way to use LWRP for Chef on AWS OpsWorks? How else would I execute this: nfs_export "/exports" do network '10.0.0.0/8' writeable false sync true options ['no_root_squash'] end This is the cookbook this is…
barfurth
  • 155
  • 1
  • 6
1
vote
1 answer

Is there a way to get Opsworks deploy through cache and not by cloning?

Is there a way to get opsworks to deploy by doing git pull instead of git clone every time?
Shrinath
  • 297
  • 1
  • 3
  • 16
1
vote
1 answer

OpsWorks Auto Healing instances that fail ELB (load balancer) test

From the AWS documentation I understand that some kind of unresponsiveness from an instance will cause it to be terminated. There is nothing in the docs that would suggest that ELB health checks can be used to mark instance as failed. What, if…
1
vote
2 answers

Deploying Zend Opcache Using Chef PHP Cookbook

I'm new on Chef. I tried writing a recipe that installs Zend OpCache (for PHP 5.4, since its not built-in yet) using Chef PHP cookbook. I tried using the php_pear php_pear "opcache" do package_name "ZendOpcache" action :install …
Petra Barus
  • 121
  • 1
  • 5
1
vote
1 answer

Amazon OpsWorks - unable to reference ebs volume in mongo dbpath

I'm deploying mongo with Amazon OpsWorks as described in the Setting Up a MongoDB Replicaset With AWS OpsWorks and the instance fails to start when I specify mounted ebs volume (/data/ebs) in dbpath. Here's stack's custom json: { "mongodb" : { …
andriys
  • 113
  • 3
1
vote
1 answer

How do I add a NAT instance that was created by the VPC setup wizard to an OpsWorks layer?

I'm using a VPC with public/private subnets and a NAT instance created by the VPC setup wizard. I'd like to make a few tweaks to the NAT instances via OpsWorks (mostly logging and changes to iptables rules), but when I created a custom layer and…
Bob Aman
  • 113
  • 5
0
votes
1 answer

not sure how to properly handle listeners/groups + health check in load balancer on aws

I am trying to wrap my head around AWS' application load balancer. I have a slightly complicated situation where I am running an ec2 instance with a nodejs server that I ultimately only want accessible for https only. So initially I setup a…
patrick
  • 153
  • 2
  • 8
0
votes
1 answer

OpsWorks Chef 11.10 undefined method 'property'

Chef 11.10 ran fine until we resized an instance, now setup_failed on boot with log: NoMethodError ------------- undefined method `property' for # Cookbook…
alyx
  • 231
  • 1
  • 9
0
votes
1 answer

OpsWorks Chef error in dokku deploy

Everything worked fine until I resized one of our ec2 instances, now I'm getting this error in OpsWorks: Exception: Mixlib::ShellOut::ShellCommandFailed: ruby_block[git push --force dokku@localhost:api.website.com deploy:master]…
alyx
  • 231
  • 1
  • 9
0
votes
1 answer

Dealing with deployment on instance start

I can't understand how am I supposed to handle 'Deploy' event that happens on instance start. The stack has two layers (Node.js and Rails) and two apps with distinct recipes to handle 'Deploy' events. The problems is, when the instance is started,…
synapse
  • 489
  • 1
  • 6
  • 14
0
votes
1 answer

multiple servers with nginx/rails app serving other server's assets shouldn't be doing this

I've got 2 servers load balanced with ELB. Each server has a copy of the same rails app, with nginx in front and unicorn as the appserver. There is no css file that is loading in a browser window now. When inspect Element, i see that it's looking…
pjammer
  • 194
  • 1
  • 5