2017-02-23 06:12:16 +01:00
|
|
|
package db
|
2016-04-04 15:44:34 +02:00
|
|
|
|
2018-03-27 22:12:47 +02:00
|
|
|
// Template is a user defined model that is used to run a task
|
2016-04-04 15:44:34 +02:00
|
|
|
type Template struct {
|
2016-04-08 21:41:20 +02:00
|
|
|
ID int `db:"id" json:"id"`
|
|
|
|
|
2018-03-27 22:12:47 +02:00
|
|
|
SSHKeyID int `db:"ssh_key_id" json:"ssh_key_id"`
|
2016-04-08 21:41:20 +02:00
|
|
|
ProjectID int `db:"project_id" json:"project_id"`
|
|
|
|
InventoryID int `db:"inventory_id" json:"inventory_id"`
|
|
|
|
RepositoryID int `db:"repository_id" json:"repository_id"`
|
|
|
|
EnvironmentID *int `db:"environment_id" json:"environment_id"`
|
|
|
|
|
2017-04-18 15:58:48 +02:00
|
|
|
// Alias as described in https://github.com/ansible-semaphore/semaphore/issues/188
|
|
|
|
Alias string `db:"alias" json:"alias"`
|
2016-04-08 21:41:20 +02:00
|
|
|
// playbook name in the form of "some_play.yml"
|
|
|
|
Playbook string `db:"playbook" json:"playbook"`
|
|
|
|
// to fit into []string
|
|
|
|
Arguments *string `db:"arguments" json:"arguments"`
|
|
|
|
// if true, semaphore will not prepend any arguments to `arguments` like inventory, etc
|
|
|
|
OverrideArguments bool `db:"override_args" json:"override_args"`
|
2016-04-04 15:44:34 +02:00
|
|
|
}
|