Skip to content

Commit 01c4a59

Browse files
DavidSsheenaajay
authored andcommitted
Update pdk-templates for gitpod and codespaces support
1 parent 4065ce2 commit 01c4a59

File tree

7 files changed

+77
-1
lines changed

7 files changed

+77
-1
lines changed

.gitpod.Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM gitpod/workspace-full
2+
RUN sudo wget https://apt.puppet.com/puppet-tools-release-bionic.deb && \
3+
wget https://apt.puppetlabs.com/puppet6-release-bionic.deb && \
4+
sudo dpkg -i puppet6-release-bionic.deb && \
5+
sudo dpkg -i puppet-tools-release-bionic.deb && \
6+
sudo apt-get update && \
7+
sudo apt-get install -y pdk zsh puppet-agent && \
8+
sudo apt-get clean && \
9+
sudo rm -rf /var/lib/apt/lists/*
10+
RUN sudo usermod -s $(which zsh) gitpod && \
11+
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \
12+
echo "plugins=(git gitignore github gem pip bundler python ruby docker docker-compose)" >> /home/gitpod/.zshrc && \
13+
echo 'PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin"' >> /home/gitpod/.zshrc && \
14+
sudo /opt/puppetlabs/puppet/bin/gem install puppet-debugger hub -N && \
15+
mkdir -p /home/gitpod/.config/puppet && \
16+
/opt/puppetlabs/puppet/bin/ruby -r yaml -e "puts ({'disabled' => true}).to_yaml" > /home/gitpod/.config/puppet/analytics.yml
17+
RUN rm -f puppet6-release-bionic.deb puppet-tools-release-bionic.deb
18+
ENTRYPOINT /usr/bin/zsh

.gitpod.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
4+
tasks:
5+
- init: pdk bundle install
6+
7+
vscode:
8+
extensions:
9+
- puppet.puppet-vscode@1.0.0:oSzfTkDf6Cmc1jOjgW33VA==

.rubocop.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ Style/BlockDelimiters:
3333
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
3434
be consistent then.
3535
EnforcedStyle: braces_for_chaining
36+
<<<<<<< HEAD
37+
=======
38+
Style/BracesAroundHashParameters:
39+
Description: Braces are required by Ruby 2.7. Cop removed from RuboCop v0.80.0.
40+
See https://github.com/rubocop-hq/rubocop/pull/7643
41+
Enabled: false
42+
>>>>>>> c228e75... Update pdk-templates for gitpod and codespaces support
3643
Style/ClassAndModuleChildren:
3744
Description: Compact style reduces the required amount of indentation.
3845
EnforcedStyle: compact

.sync.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ Rakefile:
4343
spec/spec_helper.rb:
4444
mock_with: ":rspec"
4545
coverage_report: true
46+
<<<<<<< HEAD
4647
.github/workflows/nightly.yml:
4748
unmanaged: false
4849
.github/workflows/pr_test.yml:
50+
=======
51+
.gitpod.Dockerfile:
52+
unmanaged: false
53+
.gitpod.yml:
54+
>>>>>>> c228e75... Update pdk-templates for gitpod and codespaces support
4955
unmanaged: false

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,23 @@ jobs:
8282
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
8383
services: docker
8484
stage: acceptance
85+
<<<<<<< HEAD
8586
- before_script:
87+
=======
88+
-
89+
before_script:
90+
- "bundle exec rake 'litmus:provision_list[travis_el8]'"
91+
- "bundle exec rake 'litmus:install_agent[puppet5]'"
92+
- "bundle exec rake litmus:install_module"
93+
bundler_args:
94+
env: PLATFORMS=travis_el8_puppet5
95+
rvm: 2.5.7
96+
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
97+
services: docker
98+
stage: acceptance
99+
-
100+
before_script:
101+
>>>>>>> c228e75... Update pdk-templates for gitpod and codespaces support
86102
- "bundle exec rake 'litmus:provision_list[travis_deb]'"
87103
- "bundle exec rake 'litmus:install_agent[puppet6]'"
88104
- "bundle exec rake litmus:install_module"
@@ -115,6 +131,17 @@ jobs:
115131
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
116132
services: docker
117133
stage: acceptance
134+
-
135+
before_script:
136+
- "bundle exec rake 'litmus:provision_list[travis_el8]'"
137+
- "bundle exec rake 'litmus:install_agent[puppet6]'"
138+
- "bundle exec rake litmus:install_module"
139+
bundler_args:
140+
env: PLATFORMS=travis_el8_puppet6
141+
rvm: 2.5.7
142+
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
143+
services: docker
144+
stage: acceptance
118145
-
119146
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
120147
stage: static

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ group :development do
2424
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2525
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2626
gem "json", '= 2.3.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 2.8.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
27+
<<<<<<< HEAD
2728
gem "puppet-module-posix-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
2829
gem "puppet-module-posix-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
2930
gem "puppet-module-win-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
@@ -33,6 +34,14 @@ end
3334
group :system_tests do
3435
gem "puppet-module-posix-system-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
3536
gem "puppet-module-win-system-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
37+
=======
38+
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
39+
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
40+
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
41+
gem "puppet-module-win-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
42+
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
43+
gem "github_changelog_generator", require: false, git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
44+
>>>>>>> c228e75... Update pdk-templates for gitpod and codespaces support
3645
end
3746

3847
gems = {}

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@
8989
],
9090
"pdk-version": "1.18.1",
9191
"template-url": "https://github.com/puppetlabs/pdk-templates#main",
92-
"template-ref": "heads/main-0-gdace7b2"
92+
"template-ref": "heads/main-0-g874030e"
9393
}

0 commit comments

Comments
 (0)