vcsdeploy
: Deploy an application using VCS
This defined type will deploy an application that comes from a repository.
At first fetch and on updates, this will run a custom command.
vcsdeploy { '/path/to/application':
ensure => latest,
source => 'https://gitlab.com/corporation/application',
after_fetch_command => '/path/to/application/bin/deploy',
}
The following parameters are available in the vcsdeploy
defined type:
source
after_fetch_command
ensure
target
revision
user
group
vcsrepo_attributes
after_fetch_command_attributes
after_fetch_resources
Data type: String[1]
The source URI for the repository
Data type: Stdlib::Absolutepath
The command to execute after VCS fetch
Data type: Enum[latest, present, absent]
Ensure the version control repository
Default value: latest
Data type: Stdlib::Absolutepath
The target path to fetch repository
Default value: $name
Data type: String[1]
The revision of the repository
Default value: 'master'
Data type: Optional[String[1]]
The user/uid that owns the repository files and run after fetch command
Default value: undef
Data type: Optional[String[1]]
The group/gid that owns the repository files and run after fetch command
Default value: $user
Data type: Hash
The additionnal attributes passed to vcsrepo
resource
Default value: {}
Data type: Hash
The additionnal attributes passed to exec
resource
Default value: {}
Data type: Array[Type[Resource]]
The resources that need to be realized after a fetch
Default value: []