Giter VIP home page Giter VIP logo

puppet-drupal's People

Contributors

dependabot[bot] avatar tohuwabohu avatar

Watchers

 avatar  avatar

puppet-drupal's Issues

Error deploying simple drupal site

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?

Role doesn't appear to bootstrap from 'ground up'

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    

Installation of composer fails due to missing HOME environment variable

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

Add cron job to kick off Drupal cron

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.