floedesigntechnologies / ansible-nginx-drupal Goto Github PK
View Code? Open in Web Editor NEWAnsible role to configure Nginx for running Drupal using perusio's configuration
License: Apache License 2.0
Ansible role to configure Nginx for running Drupal using perusio's configuration
License: Apache License 2.0
Thank you for putting this ansible role together.
I'm new to ansible but have a decent understanding of what's going on.
I cannot get the role to read the config variables properly.
fatal: [104.154.x.x]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'ansible.vars.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'file_name'\n\nThe error appears to have been in '/Users/stevenkinley/ansible/lamp_simple/roles/FloeDesignTechnologies.nginx-drupal/tasks/sites.yml': line 4, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n file: path={{nginx_drupal_config_path}}/sites-enabled state=directory\n- name: \"Create available sites configuration files\"\n ^ here\n"}
I've tried multiple syntaxes formats, none seem to work.
My playbook.yml
- role: FloeDesignTechnologies.nginx-drupal
nginx_drupal_sites:
- file_name: foo
server_name: foo.org
alternate_server_name: www.foo.org
root: /var/www/foo
http:
port: 80
- { role: FloeDesignTechnologies.nginx-drupal, nginx_drupal_sites: [{ file_name: drupal8.my, server_name: drupal8.my, root: /var/www/drupal8.my/public, http: {port: 80}}]}
I'm sure I'm missing some subtle syntax thing.
Any help would be appreciated.
Thanks!
I quickly exposed the value used for the client_max_body_size
directive in the http
context as a variable in 7d1eee4
There is a lot of directives in the http
context that one may want to change. But I'm not sure the generalization of the pattern using in 7d1eee4 would be produce a usable/maintainable solution.
After a security issue on Drupal core https://www.drupal.org/SA-CORE-2015-003, the autocomplete has been changed.
Relative to this issue https://www.drupal.org/node/2599326#comment-10850594, I added a new rule on drupal.j2
Hey! congrats for the work!
I'm currently working in a Drupal Juju charm, but! and using the Perusio configs, and I already was considering a CM for doing that, currently it's all in shell scripts.
https://github.com/TallerWebSolutions/devops/tree/master/charms/saucy/drupal
The thing is, that the charm can use Ansible, so, we can work together in this, what you say?
I give it a look at your code, and I'm worried about loosing the updates from the Perusio confs, but hey thats something we can see in the future.
Hi!
What do you think about feature to define upstream servers for each site separately? I need this feature, because i use this role on caching proxy server for multiple drupal sites, that hosts on different webservers
The drupal.j2
configuration doesn't work with Drupal 6 out of the box, mainly because it requires leading slashes to be stripped.
For example, see https://github.com/perusio/drupal-with-nginx/blob/D6/apps/drupal/drupal6.conf#L226
in readme it's nginx_drupal_use_aio: Whether or not to use AIO to server video and audio file, defaults to true.
and in code it's {% if nginx_drupal_aio %} (see templates/apps/drupal/drupal.j2 )
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.