Skip to content

Commit

Permalink
Added basic example to the project
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro JNM <[email protected]>
  • Loading branch information
alejandrojnm committed Jul 29, 2020
1 parent 89c904e commit 48e0428
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = tab
indent_size = 2

[{Makefile,go.mod,go.sum,*.go,.gitmodules}]
indent_style = tab
indent_size = 2

[*.md]
indent_size = 4
trim_trailing_whitespace = false

eclint_indent_style = unset

[Dockerfile]
indent_size = 4
26 changes: 26 additions & 0 deletions examples/simple_example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"variables": {
"CIVO_TOKEN": "{{ env `CIVO_TOKEN` }}"
},
"builders": [
{
"type": "civo",
"api_token": "{{ user `CIVO_TOKEN` }}",
"template": "debian-buster",
"region": "lon1",
"size": "g2.small",
"ssh_username": "root"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"apt-get update",
"apt-get upgrade -y",
"apt-get install nginx-full -y",
"echo '<ssh-rsa_key>' | tee /root/.ssh/authorized_keys"
]
}
]
}

0 comments on commit 48e0428

Please sign in to comment.