cloud / cloudtool
generate cloud-config.yml and other config files on the fly
Installs: 155
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.0
- phore/cli: ^1.0
- symfony/expression-language: ^3.1
- text/template: ^2.4
- wikimedia/ip-set: ^1.1.0
This package is auto-updated.
Last update: 2020-02-05 23:24:22 UTC
README
PHP Library to generate config files.
Install
sudo composer global require cloud/cloudtool
Configuration Management
Create configuration files from templates on the fly.
cloudtool
will search for *.ctt
- files (cloud-tool-template) and
interpret them.
{template target="/etc/apache/sites-enabled/001_vhost.conf" owner="root" group="root" mode="0755"}
{template onupdate="service apache2 restart"}
{env name="CLOUD_CONFIG_URL" > configUrl}
{fetch url=configUrl enc="JSON" > config}
{for host in config.hosts}
<VirtualHost *:80>
ServerName {= host.name}
DocumentRoot {= host.docRoot}
</VirtualHost>
{/for}