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

php_require doesn't ensure that the specified version is installed #67

@alexmace

Description

@alexmace

If I have a manifest file containing the following:

    $php_version = '5.6.7'

    # Install a php version and set as the global default php
    php::version { $php_version: }

    # Install PHP extensions
    php::extension::mcrypt { "mcrypt for {$php_version}":
        php => $php_version
    }
    php::extension::memcache { "memcache for {$php_version}":
        php => $php_version
    }
    php::extension::memcached { "memcached for {$php_version}":
        php => $php_version
    }
    php::extension::xdebug { "xdebug for {$php_version}":
        php => $php_version,
        version => '2.3.2'
    }

Then on the first run, all of the extensions fail to install because 5.6.7 is not installed and after this it installs 5.6.7 ok. On the second run, the extensions then install fine. Looking at the code in the extension manifests, it would appear that php_require is supposed to prevent this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions