-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error deploying simple drupal site #4
Comments
An example would be
I agree this is not ideal and should at least be documented - unless there is a better solution to this. |
Also please note there is issue #3: at the moment, the module is unable to provision a site from scratch; it only works if there is a site already existing. |
Sorry about reporting this, I think the issue can be closed. |
No need to close it - the issue is still valid. I only wanted to express that this is a 'known issue' and should eventually be fixed in the future. Not everyone has an existing site to be managed. |
Fixed in version 1.2.1. |
This issue is still there for me in v1.2.1. Adding the following to my manifest solved it. The additional package { 'puppet': }
file { ['/var/cache/puppet', '/var/cache/puppet/archives']:
ensure => directory,
require => Package['puppet']
} I'm definitely using 1.2.1: $ puppet module list
/etc/puppet/modules
└── tohuwabohu-drupal (v1.2.1) |
So yeah - this is a tricky issue. As mentioned above I've documented this in the limitations section. I'm not sure what the expectation is: the files need to be stored somewhere. The current |
Ah, I thought misunderstood that this issue was reported fixed in What do you think about putting the |
Or, do the files need to be preserved? What about putting them in |
Yeah, they should stay. The
Sure, this could be done. Currently the assumption is that those resources are defined globally and just used by various modules. Defining them in multiple modules will result in collisions. I understand this won't happen in your case. Long term I would like to replace the camptocamp-archive module with puppet-archive as it completely avoids this problem. Last time I checked there wasn't a release on the forge but now there is so changing to the other module should fix the issue. |
Thx. Perhaps another model to consider would be using drupal console for the download & installation of Drupal core. I ended up going that route (through Puppet). |
I had a quick look at drupal console and it appears to do the same thing as drush. Could you please give me an example where using drupal console would solve this problem in a better way? |
I used it to circumvent the need for the Something like this: sudo drupal site:new INSTALL_DIRECTORY 8.0.3 --no-interaction
sudo drupal site:install --site-name=default --db-type=mysql --db-host=localhost --db-port=3306 --db-name=DB_NAME --db-user=DB_USER --db-pass=DB_PASS --account-name=ACCOUNT_NAME --account-mail=ACCOUNT_EMAIL --site-mail=SITE_EMAIL --account-pass=ACCOUNT_PASSWORD --langcode=en standard It could be wrapped in a guard to test whether a site is already installed, like checking whether |
The code below produces an error.
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?
The text was updated successfully, but these errors were encountered: