Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Sep 2, 2024
1 parent 33b8029 commit aebafad
Show file tree
Hide file tree
Showing 53 changed files with 1,188 additions and 499 deletions.
20 changes: 20 additions & 0 deletions files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/srv/hosty/
services/
db-foo/
compose.yaml
...
app-foo/
.port
local port to use
compose.yaml
source.yaml
repo: 'repo url'
branch: 'deployed branch'
commit: 'last deployed commit hash'
Caddyfile
...
backups/
db-foo/
yyyy-mm-dd_hh-mm-ss.sql.gz
...

15 changes: 3 additions & 12 deletions src/ansible/index.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
import { AnyTask, Host, Playbook, Role, Step } from './types.js'
import { AnyTask, Host, Playbook, Step, Tasks } from './types.js'

export * from './types.js'
export * as tasks from './tasks/index.js'
export * as roles from './roles/index.js'

export function task(data: AnyTask) {
return data
}

export function role(data: Role) {
return data
}

export function host(data: Host) {
return data
}

export function step(host: Host, role: Role): Step {
return {
hosts: host.name,
tasks: role.tasks,
handlers: role.handlers,
}
export function step(host: Host, tasks: Tasks): Step {
return { hosts: host.name, tasks }
}

export function playbook(data: Playbook) {
Expand Down
140 changes: 0 additions & 140 deletions src/ansible/roles/assert.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/ansible/roles/create_hosty_directory.ts

This file was deleted.

75 changes: 0 additions & 75 deletions src/ansible/roles/create_service.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/ansible/roles/generate_ssh_key.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/ansible/roles/index.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/ansible/roles/install_docker.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/ansible/roles/install_git.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/ansible/roles/install_nixpacks.ts

This file was deleted.

Loading

0 comments on commit aebafad

Please sign in to comment.