Skip to content

Commit

Permalink
feat: add GitLab snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
rixrix committed Jul 16, 2017
1 parent 242692d commit fadb545
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions snippets/terraform.json
Original file line number Diff line number Diff line change
Expand Up @@ -6409,5 +6409,56 @@
"body": [
"\"ca-central-1\""
]
},
"gitlab": {
"prefix": "tf-gitlab",
"description": "define a GitLab provider.",
"body": [
"provider \"gitlab\" {",
" token = \"${myGitLabToken}\"",
"}"
]
},
"gitlab_deploy_key": {
"prefix": "tf-gitlab_deploy_key",
"description": "define a gitlab_deploy_key resource.",
"body": [
"resource \"gitlab_deploy_key\" \"${example}\" {",
" project = \"${example}/deploying\"",
" title = \"${example} deploy key\"",
" key = \"ssh-rsa AAAA\"",
"}"
]
},
"gitlab_group": {
"prefix": "tf-gitlab_group",
"description": "define a gitlab_group resource.",
"body": [
"resource \"gitlab_group\" \"${example}\" {",
" name = \"${example}\"",
" path = \"${example}\"",
" description = \"${example} description\"",
"}"
]
},
"gitlab_project_hook": {
"prefix": "tf-gitlab_project_hook",
"description": "define a gitlab_project_hook resource.",
"body": [
"resource \"gitlab_project_hook\" \"${example}\" {",
" project = \"${example}/hooked\"",
" url = \"https://${example}.com/hooke/example\"",
"}"
]
},
"gitlab_project": {
"prefix": "tf-gitlab_project",
"description": "define a gitlab_project resource.",
"body": [
"resource \"gitlab_project\" \"${example}\" {",
" name = \"${example}\"",
" description = \"${example}\"",
"}"
]
}
}

0 comments on commit fadb545

Please sign in to comment.