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

Refactoring #29

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
1988aa0
Update to pdk, rewrite code to new Puppet syntaxe and add support to …
disaster37 May 15, 2019
60220d4
Fix type for download_url parameter
disaster37 May 15, 2019
5f1be7d
Replace by string to test purpose
disaster37 May 15, 2019
4b84625
Comment the delation of zip for test pupose
disaster37 May 15, 2019
59b04c3
Use string instead filesource because of the regex is break for puppe…
disaster37 May 15, 2019
48614d0
Fix syntaxe
disaster37 May 15, 2019
3b6cb2f
Use file instead archive when proxy is not set (bug when use puppet://)
disaster37 May 15, 2019
5983018
Fix test setting when winlogbeat >= 6
disaster37 May 15, 2019
cd0c09a
Fix common.yaml when lookup and get fact value
disaster37 May 15, 2019
abfbe59
Fix common.yaml typo
disaster37 May 15, 2019
d0abb75
Try fix epp template
disaster37 May 15, 2019
2bac390
Fix command to test winlogbeat
disaster37 May 15, 2019
dab35c7
Remove default value for outputs
disaster37 May 17, 2019
09ee68f
Fix epp template
disaster37 May 17, 2019
08bbcae
Fix the doc
disaster37 May 17, 2019
7ce510a
Fix lint issue and remove debug lines
disaster37 May 17, 2019
1483af3
Add dependency to wait unzip on target before lauch script sthat inst…
disaster37 May 23, 2019
67395d2
Remove the require, it not fix that.
disaster37 May 23, 2019
fb07d11
Use version 6.8.5 as default
disaster37 Jan 17, 2020
946c867
Add ability to remove winlogbeat
disaster37 Jan 23, 2020
0251828
Add ability to remove winlogbeat
disaster37 Jan 23, 2020
08401d2
Add ability to remove winlogbeat
disaster37 Jan 23, 2020
878c6f4
Add ability to remove winlogbeat
disaster37 Jan 23, 2020
2051343
Add ability to remove winlogbeat
disaster37 Jan 23, 2020
88b71a6
Add ability to remove winlogbeat
disaster37 Jan 23, 2020
bbfbbcb
Try to fix factor
disaster37 Jan 23, 2020
8f879ce
Try to fix factor
disaster37 Jan 23, 2020
5f13dad
Use winlogbeat 7.5.1 as default version
disaster37 Jan 23, 2020
24428f2
Fix version on metadata
disaster37 Jan 23, 2020
e4ce57c
Try to resolve conflict
langoureaux-s Jan 8, 2021
915460d
Try to resolve conflict
langoureaux-s Jan 8, 2021
baac9ea
Try to resolve conflict
langoureaux-s Jan 8, 2021
00bdfe5
Fix lint code wit pdk validate
langoureaux-s Jan 8, 2021
501c102
bump: update pdk version
disaster37 Jan 28, 2022
c433237
fix: try to fix upgrade
disaster37 Jan 28, 2022
3b88752
fix: add sleep for troobleshotig purpose
disaster37 Jan 28, 2022
c7b05bd
fix: remove sleep during install
disaster37 Jan 28, 2022
556916b
fix: redo sleep
disaster37 Jan 28, 2022
b90ea74
fix: fix typo on powershell cmd
disaster37 Jan 28, 2022
98bdf2f
fix: add sleep between stop service and remove folders
disaster37 Jan 28, 2022
517945e
bump: set default verison to 7.16.3
disaster37 Jan 28, 2022
2c9da33
fix: processor is array of hash and not hash
langoureaux-s Mar 10, 2022
398e62e
fix: ignore error when delete winlogbeat folder, because it can be th…
langoureaux-s Mar 14, 2022
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
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM puppet/pdk:latest

# [Optional] Uncomment this section to install additional packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet
{
"name": "Puppet Development Kit (Community)",
"dockerFile": "Dockerfile",

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"puppet.puppet-vscode",
"rebornix.Ruby"
]

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pdk --version",
}
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.rb eol=lf
*.erb eol=lf
*.pp eol=lf
*.sh eol=lf
*.epp eol=lf
46 changes: 27 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
pkg/
Gemfile.lock
Gemfile.local
vendor/
.vendor/
spec/fixtures/manifests/
spec/fixtures/modules/
.vagrant/
.bundle/
.ruby-version
coverage/
log/
.idea/
.dependencies/
.librarian/
Puppetfile.lock
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
.*.sw?
.yardoc/
Guardfile
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/tmp/
/vendor/
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
/spec/fixtures/litmus_inventory.yaml
53 changes: 53 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
stages:
- syntax
- unit

default:
cache:
paths:
- vendor/bundle

before_script: &before_script
- bundle -v
- rm Gemfile.lock || true
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
- "# Set `rubygems_version` in the .sync.yml to set a value"
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
- gem --version
- bundle -v
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)

validate lint check rubocop-Ruby 2.5.7-Puppet ~> 6:
stage: syntax
image: ruby:2.5.7
script:
- bundle exec rake validate lint check rubocop
variables:
PUPPET_GEM_VERSION: '~> 6'

parallel_spec-Ruby 2.5.7-Puppet ~> 6:
stage: unit
image: ruby:2.5.7
script:
- bundle exec rake parallel_spec
variables:
PUPPET_GEM_VERSION: '~> 6'

validate lint check rubocop-Ruby 2.7.2-Puppet ~> 7:
stage: syntax
image: ruby:2.7.2
script:
- bundle exec rake validate lint check rubocop
variables:
PUPPET_GEM_VERSION: '~> 7'

parallel_spec-Ruby 2.7.2-Puppet ~> 7:
stage: unit
image: ruby:2.7.2
script:
- bundle exec rake parallel_spec
variables:
PUPPET_GEM_VERSION: '~> 7'

47 changes: 47 additions & 0 deletions .pdkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/tmp/
/vendor/
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
/spec/fixtures/litmus_inventory.yaml
/appveyor.yml
/.editorconfig
/.fixtures.yml
/Gemfile
/.gitattributes
/.gitignore
/.gitlab-ci.yml
/.pdkignore
/.puppet-lint.rc
/Rakefile
/rakelib/
/.rspec
/.rubocop.yml
/.travis.yml
/.yardopts
/spec/
/.vscode/
/.sync.yml
/.devcontainer/
1 change: 1 addition & 0 deletions .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--relative
2 changes: 1 addition & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--format documentation
--color
--format documentation
Loading