Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Can't get an FPM pool running #71

@outrunthewolf

Description

@outrunthewolf

Excuse my stupidity. I can't seem to get an FPM pool running. Here is my config:

class projects::api {

    include mysql
    php::version { '5.4': }

    # Get the API repo
    repository {
        "${boxen::config::srcdir}/myrepo/api":
            source   => 'myrepo/api',
            provider => 'git';
    }

    $version = '5.4'

    #
    php::fpm::pool { "${name}-${version}":
        version     => $version,
        socket_path => "${boxen::config::socketdir}/${name}",
        require     => File["${nginx::config::sitesdir}/${name}.conf"], 
    }

    # Setup PHP project
    php::project { 'api':
        server_name   => 'api.local.myrepo.in',
        source        => 'moltin/api',
        nginx         => '/opt/boxen/repo/modules/projects/templates/shared/nginx/nginx.conf.erb',
        redis         => true
    }
}

I get various errors with whatever I try, here is my error for this configuration:

Warning: Scope(Class[Projects::Api]): Could not look up qualified variable 'nginx::config::sitesdir'; class nginx::config has not been evaluated
Error: Duplicate declaration: File[/opt/boxen/data/php/5.4.40] is already declared in file /opt/boxen/repo/shared/php/manifests/version.pp:88; cannot redeclare at /opt/boxen/repo/shared/php/manifests/version.pp:88 on node christophersmbp.home
Error: Duplicate declaration: File[/opt/boxen/data/php/5.4.40] is already declared in file /opt/boxen/repo/shared/php/manifests/version.pp:88; cannot redeclare at /opt/boxen/repo/shared/php/manifests/version.pp:88 on node christophersmbp.home

I would be happy to contribute to the docs if I could figure out how it all worked. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions