brucem/vagrant-puppet-ezpublish

Database setup in ezsetup

ssehovic opened this issue · 5 comments

Hi,

after vagrant up and ezsetup from http://33.33.33.10/ I can't connect to mysql on localhost. Getting "The database would not accept the connection, please review your settings and try again."

I can see that there is no ezpublish database created during puppet execution.
Is it normal that there is no puppet modules for class { 'ezpublish::standalone': }?

Btw, nice job with vagrant.

Hi

The database is created here: https://github.com/brucem/vagrant-puppet-ezpublish/blob/master/puppet/manifests/ezpublish5_standalone.pp#L36

You should see line in the puppet run output like the following where the database, user and permissions are created.

Notice: /Stage[main]//Node[default]/Ezpublish::Database[ezpublish]/Mysql::Db[ezpublish]/Mysql_database[ezpublish]/ensure: created
Notice: /Stage[main]//Node[default]/Ezpublish::Database[ezpublish]/Mysql::Db[ezpublish]/Mysql_user[ezpublish@localhost]/ensure: created
Notice: /Stage[main]//Node[default]/Ezpublish::Database[ezpublish]/Mysql::Db[ezpublish]/Mysql_grant[ezpublish@localhost/ezpublish.*]/ensure: created

I've just done a test install and it worked fine for me ;)

If you are still having issue please let me know any errors that are produced during the vagrant up process

Cheers
Bruce

Hi,

I have replaced your 32bit box with http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box. Maybe that's the problem?

S.

P.S. Will try original vagrantfile.

Hi,

my bad, mysql is configured without root password.

Best regards,
Sinisa

Fresh vagrant up produces these errors:

Stderr from the command:

Warning: Could not retrieve fact fqdn
Warning: Host is missing hostname and/or domain: vagrant-ubuntu-precise-64
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Error: tar xzf /var/ezpublish-dist/ezpublish5_community_project-2013.11-gpl-full.tar.gz -C /var/www/default --strip-components=1 --overwrite returned 2 instead of one of [0]
Error: /Stage[main]//Node[default]/Ezpublish::Install[eZ Publish Community Project 2013.11]/Extract_file[/var/ezpublish-dist/ezpublish5_community_project-2013.1
1-gpl-full.tar.gz]/Exec[/var/ezpublish-dist/ezpublish5_community_project-2013.11
-gpl-full.tar.gz]/returns: change from notrun to 0 failed: tar xzf /var/ezpublis
h-dist/ezpublish5_community_project-2013.11-gpl-full.tar.gz -C /var/www/default
--strip-components=1 --overwrite returned 2 instead of one of [0]
Warning: /Stage[main]//Node[default]/Ezpublish::Install[eZ Publish Community Pro
ject 2013.11]/Enforce_perms[Enforce g+rw /var/www/default]/Exec[enforce /var/www
/default permissions]: Skipping because of failed dependencies
Warning: /Stage[main]//Node[default]/Ezpublish::Install[eZ Publish Community Pro
ject 2013.11]/Exec[eZPublish post install /var/www/default]: Skipping because of
failed dependencies
Warning: /Stage[main]/Apache::Service/Service[httpd]: Skipping because of failed
dependencies

Hi Bruce:-)

Eh I overseen in radme installation details regarding username and password.
Sorry for that!

Now everything is working as it should.

S.