tohuwabohu / puppet-drupal Goto Github PK
View Code? Open in Web Editor NEWPuppet module to manage one or more Drupal installations.
License: Apache License 2.0
Puppet module to manage one or more Drupal installations.
License: Apache License 2.0
The code below produces an error.
package{'php5': }
package{'php5-cli':}
drupal::site { 'localhost':
core_version => '7.38',
require => Package['php5','php5-cli']
}
==> default: Error: Could not find dependency File[/var/cache/puppet/archives] for Archive[drush-6.6.0] at /tmp/vagrant-puppet/modules-238003d1b18ca55794974c17ab4e2b78/drupal/manifests/install.pp:73
It seems that the drupal class needs to be declared but I don't see this in any documentation. Is this correct, if so, can you provide an example of how the drupal class should be declared?
Along with the changes in PR #2 I've hit what appears to be a blocker.
Error: /usr/local/sbin/drupal-update.sh /opt/drupal.org/www.lan-f90ede3c829ae2d54b7e87455b735ed9db671160 www.lan >> /var/log/drush/www.lan.log 2>&1 returned 1 instead of one of [0]
Error: /Stage[main]/Main/Node[au.lan]/Drupal::Site[www.lan]/Exec[update-drupal-www.lan-database]/returns: change from notrun to 0 failed: /usr/local/sbin/drupal-update.sh /opt/drupal.org/www.lan-f90ede3c829ae2d54b7e87455b735ed9db671160 www.lan >> /var/log/drush/www.lan.log 2>&1 returned 1 instead of one of [0]
The part where it fails (from the log) is
Command variable-set needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command. [error]
The drush command 'vset maintenance_mode 1' could not be executed. [error]
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This may occur when Drush is trying to:
* bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working database setup by specifying the URI to use
with the --uri parameter on the command line. See `drush topic docs-aliases` for details.
* connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See http://drupal.org/node/1428638 for details.
Has this role been tested doing deployments from bare metal or is an existing install a requirement?
I'm trying to deploy using puppet 3.7 onto Centos 7.
Drush was attempting to connect to:
Drupal version : 7.37
Site URI : www.lan
Default theme : garland
Administration theme : garland
PHP executable : /usr/bin/php
PHP configuration : /etc/php.ini
PHP OS : Linux
Drush version : 6.6.0
Drush configuration :
Drush alias files : /etc/drush/aliases.drushrc.php /etc/drush/au.aliases.drushrc.php
Drupal root : /opt/drupal.org/www.lan-f90ede3c829ae2d54b7e87455b735ed9db671160
Site path : sites/default
File directory path : sites/default/files
The current version 6.6.0 is outdated and not supported anymore.
I am just running the basic installation with:
class drupal { drupal::site { 'vagrant-debian-wheezy.vagrantup.com': core_version => '6.33', } }
But i cant get past this error. I am trying to get puppet-kitchen running with this modul.
Thank you very much for any help or pointing in the right direction.
Daniel
Example error message
Notice: Compiled catalog for debian-8-64.home.gateway in environment production in 0.49 seconds
Info: Applying configuration version '1458462985'
Notice: /Stage[main]/Drupal::Install/Exec[install-composer]/returns: All settings correct for using Composer
Notice: /Stage[main]/Drupal::Install/Exec[install-composer]/returns: PHP Fatal error: Uncaught exception 'RuntimeException' with message 'The HOME or COMPOSER_HOME environment variable must be set for composer to install correctly' in -:582
Notice: /Stage[main]/Drupal::Install/Exec[install-composer]/returns: Stack trace:
Notice: /Stage[main]/Drupal::Install/Exec[install-composer]/returns: #0 -(387): getHomeDir()
Notice: /Stage[main]/Drupal::Install/Exec[install-composer]/returns: #1 -(111): installComposer(false, '/usr/local/bin', 'composer', false, false, false)
Notice: /Stage[main]/Drupal::Install/Exec[install-composer]/returns: #2 -(13): process(Array)
Notice: /Stage[main]/Drupal::Install/Exec[install-composer]/returns: #3 {main}
Notice: /Stage[main]/Drupal::Install/Exec[install-composer]/returns: thrown in - on line 582
By default, Drupal 7 requires to know a certain key.
Luckily, drush doesn't require this. See the drush for an example.
Note: by default, the job should run only once an hour and the minute should be randomized based on the site name.
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.