alecpm / opsworks-web-python Goto Github PK
View Code? Open in Web Editor NEWOpsWorks deployment cookbooks for plone web apps (buildout, Django, Plone)
OpsWorks deployment cookbooks for plone web apps (buildout, Django, Plone)
When the number of instances per cpu set is less than 4, the math in haproxy.cfg.erb will not yield any server lines for the plone_instances backend.
See http://github.com/alecpm/opsworks-web-python/plone_buildout/templates/default/haproxy.cfg.erb
The README links to chef-dk, but the page doesn't exist. I thought this may be useful information. Sorry if it's not. :)
Hello, I am familiar with OpsWorks but am figuring out Python/Django.
I have the server built and starting with the cook books.
I have a Django App which a consultant has written for us. The file is a Zip. How do I tell the deploy to use this zip. I know for Java I would add an app for deploy.
Looking at your cookbooks I think the deploy has to be in the cookbook. Can you advise on this with an example?
Thanks.
I am attempting to setup a Django application layer in Opsworks.
I can run opsworks_deploy_python::django-setup
with no issue.
However opsworks_deploy_python::django-configure
fails with the error below.
The directory .../current
does not exist.
Am I missing a step?
My stack has this custom json:
{
"deploy": {
"django-test": {
"custom_type":"django"
}
}
}
error logs:
[2016-01-18T18:43:03+00:00] INFO: Processing template[/srv/www/django-test/current/local_settings.py] action create (opsworks_deploy_python::django-configure line 47)
================================================================================
Error executing action `create` on resource 'template[/srv/www/django-test/current/local_settings.py]'
================================================================================
Chef::Exceptions::EnclosingDirectoryDoesNotExist
------------------------------------------------
Parent directory /srv/www/django-test/current does not exist.
When I try to start any of the instances (HAProxy, Plone or Zeoserver), the follow error occurs:
[2014-04-17T20:47:57+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /opt/aws/opsworks/current
One version per cookbook
data_bags at /var/lib/aws/opsworks/data/data_bags
nodes at /var/lib/aws/opsworks/data/nodes
[2014-04-17T20:47:57+00:00] INFO: Forking chef instance to converge...
[2014-04-17T20:47:57+00:00] INFO: *** Chef 11.10.4 ***
[2014-04-17T20:47:57+00:00] INFO: Chef-client pid: 4053
[2014-04-17T20:47:58+00:00] INFO: Setting the run_list to ["opsworks_custom_cookbooks::load", "opsworks_custom_cookbooks::execute"] from JSON
[2014-04-17T20:47:58+00:00] WARN: Run List override has been provided.
[2014-04-17T20:47:58+00:00] WARN: Original Run List: [recipe[opsworks_custom_cookbooks::load], recipe[opsworks_custom_cookbooks::execute]]
[2014-04-17T20:47:58+00:00] WARN: Overridden Run List: [recipe[opsworks_initial_setup], recipe[ssh_host_keys], recipe[ssh_users], recipe[mysql::client], recipe[dependencies], recipe[ebs], recipe[opsworks_ganglia::client], recipe[opsworks_stack_state_sync], recipe[plone_buildout::zeoserver-setup], recipe[deploy::default], recipe[plone_buildout::zeoserver-deploy], recipe[test_suite], recipe[opsworks_cleanup]]
[2014-04-17T20:47:58+00:00] INFO: Run List is [recipe[opsworks_initial_setup], recipe[ssh_host_keys], recipe[ssh_users], recipe[mysql::client], recipe[dependencies], recipe[ebs], recipe[opsworks_ganglia::client], recipe[opsworks_stack_state_sync], recipe[plone_buildout::zeoserver-setup], recipe[deploy::default], recipe[plone_buildout::zeoserver-deploy], recipe[test_suite], recipe[opsworks_cleanup]]
[2014-04-17T20:47:58+00:00] INFO: Run List expands to [opsworks_initial_setup, ssh_host_keys, ssh_users, mysql::client, dependencies, ebs, opsworks_ganglia::client, opsworks_stack_state_sync, plone_buildout::zeoserver-setup, deploy::default, plone_buildout::zeoserver-deploy, test_suite, opsworks_cleanup]
[2014-04-17T20:47:58+00:00] INFO: Starting Chef Run for zeoserver1.localdomain
[2014-04-17T20:47:58+00:00] INFO: Running start handlers
[2014-04-17T20:47:58+00:00] INFO: Start handlers complete.
[2014-04-17T20:47:58+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/zeoserver1.localdomain/runs
[2014-04-17T20:48:01+00:00] INFO: HTTP Request Returned 412 Precondition Failed: No such cookbook: redis
================================================================================
Error Resolving Cookbooks for Run List:
================================================================================
Missing Cookbooks:
------------------
No such cookbook: redis
Expanded Run List:
------------------
* opsworks_initial_setup
* ssh_host_keys
* ssh_users
* mysql::client
* dependencies
* ebs
* opsworks_ganglia::client
* opsworks_stack_state_sync
* plone_buildout::zeoserver-setup
* deploy::default
* plone_buildout::zeoserver-deploy
* test_suite
* opsworks_cleanup
[2014-04-17T20:48:02+00:00] ERROR: Running exception handlers
[2014-04-17T20:48:02+00:00] ERROR: Exception handlers complete
[2014-04-17T20:48:02+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache/chef-stacktrace.out
[2014-04-17T20:48:02+00:00] ERROR: 412 "Precondition Failed"
[2014-04-17T20:48:02+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.