Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually add the CI workflow #153

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "ci"

on:
pull_request:
branches:
- "main"
workflow_dispatch:

jobs:
Spec:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
secrets: "inherit"

Acceptance:
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
secrets: "inherit"
2 changes: 2 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ appveyor.yml:
unmanaged: false
.github/workflows/release.yml:
unmanaged: false
.github/workflows/ci.yml:
unmanaged: false

Gemfile:
optional:
Expand Down
1 change: 0 additions & 1 deletion manifests/get.pp
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
# } # rsync
#
define rsync::get (
$source,

Check warning on line 35 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::source (check: parameter_documentation)
$path = $name,

Check warning on line 36 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::path (check: parameter_documentation)
$user = undef,

Check warning on line 37 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::user (check: parameter_documentation)
$purge = undef,

Check warning on line 38 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::purge (check: parameter_documentation)
$recursive = undef,

Check warning on line 39 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::recursive (check: parameter_documentation)
$links = undef,

Check warning on line 40 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::links (check: parameter_documentation)
$hardlinks = undef,

Check warning on line 41 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::hardlinks (check: parameter_documentation)
$copylinks = undef,

Check warning on line 42 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::copylinks (check: parameter_documentation)
$times = undef,

Check warning on line 43 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::times (check: parameter_documentation)
$include = undef,

Check warning on line 44 in manifests/get.pp

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

missing documentation for defined type parameter rsync::get::include (check: parameter_documentation)
$exclude = undef,
$exclude_first = true,
$keyfile = undef,
Expand Down Expand Up @@ -151,7 +151,6 @@
$onlyif_real = $onlyif
}


exec { "rsync ${name}":
command => "rsync -q ${rsync_options}",
path => ['/bin', '/usr/bin', '/usr/local/bin'],
Expand Down
1 change: 0 additions & 1 deletion manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# class rsync::server
#
class rsync::repo {

include rsync::server

$base = '/data/rsync'
Expand Down
1 change: 0 additions & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,4 @@
}

create_resources(rsync::server::module, $modules)

}
3 changes: 1 addition & 2 deletions manifests/server/module.pp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@
$exclude = undef,
$exclude_from = undef,
$dont_compress = undef,
$ignore_nonreadable = undef) {

$ignore_nonreadable = undef) {
concat::fragment { "frag-${name}":
content => template('rsync/module.erb'),
target => $rsync::server::conf_file,
Expand Down
Loading