Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Latest commit

 

History

History
47 lines (39 loc) · 1.25 KB

acl_deploy.md

File metadata and controls

47 lines (39 loc) · 1.25 KB

Opswork::Acl_Deploy Recipe

This recipe extends acl::deploy recipe and provides a "per application" ACL management.

Configuration

{
    "acl": {
        "deploy": [
            {
                "exec": {
                    "app": ["my-app-1", "my-app-2"],
                    "path": ["/srv/www/"],
                    "user": "root"
                },
                "path": ["test/acl", "test/acl2"],
                "options": "R",
                "user": [
                    {
                        "name": ["ubuntu"],
                        "permissions": "rwX"
                    }
                ],
                "group": [
                    {
                        "name": ["www-data"],
                        "permissions": "rwX"
                    }
                ]
            }
        ]
    }
}

Parameters

This recipe's parameters comes in addition to original acl::deploy recipe's parameters.

Execution context

node[:acl][:deploy][0][:exec][:app]: Array of applications names on which apply the current rule.

When you define some app, their deploy path will be dynamicaly added to the path parameter, taking advantage of opswork's native Apps configuration