Skip to content

Commit

Permalink
Make sure /srv directory exist for CI
Browse files Browse the repository at this point in the history
FHS 3.0 define /srv but some versions of Debian do not include it.  Make
sure it exist.  This is however probably a terrible idea and we should
rather consider installing in a directory we are sure will exist.
  • Loading branch information
smortex authored and neomilium committed Jun 10, 2024
1 parent 8cf5b8e commit 4d7f82a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/acceptance/nextcloud_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
describe 'nextcloud class' do
it 'works idempotently with no errors' do

Check failure on line 6 in spec/acceptance/nextcloud_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Ubuntu 18.04

nextcloud class works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu1804-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_093705032.wT6Nqv.pp Last 10 lines of output were: Warning: /Stage[main]/Nextcloud::Base/Application[nextcloud-nextcloud.example.com]/File[/srv/www/nextcloud.example.com]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Base/File[/srv/www/nextcloud.example.com/persistent-data]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Base/File[/srv/www/nextcloud.example.com/persistent-data/data]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Base/Application[nextcloud-nextcloud.example.com]/Concat::Fragment[application-nextcloud-nextcloud.example.com]/Concat_fragment[application-nextcloud-nextcloud.example.com]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config/custom.config.php]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Wrapper/File[/usr/local/bin/occ]: Skipping because of failed dependencies Info: Stage[main]: Unscheduling all events on Stage[main] Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 40.08 seconds

Check failure on line 6 in spec/acceptance/nextcloud_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Ubuntu 18.04

nextcloud class works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu1804-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_093803308.PFpmzf.pp Last 10 lines of output were: Warning: /Stage[main]/Nextcloud::Base/Application[nextcloud-nextcloud.example.com]/File[/srv/www/nextcloud.example.com]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Base/File[/srv/www/nextcloud.example.com/persistent-data]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Base/File[/srv/www/nextcloud.example.com/persistent-data/data]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Base/Application[nextcloud-nextcloud.example.com]/Concat::Fragment[application-nextcloud-nextcloud.example.com]/Concat_fragment[application-nextcloud-nextcloud.example.com]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config/custom.config.php]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Wrapper/File[/usr/local/bin/occ]: Skipping because of failed dependencies Info: Stage[main]: Unscheduling all events on Stage[main] Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 50.98 seconds

Check failure on line 6 in spec/acceptance/nextcloud_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Ubuntu 20.04

nextcloud class works idempotently with no errors Failure/Error: apply_manifest(pp, catch_changes: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet8.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_093940657.iBrDhO.pp Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for ubuntu2004-64-puppet8.example.com in environment production in 0.39 seconds Info: Using environment 'production' Info: Applying configuration version '1718012385' �[mNotice: /Stage[main]/Nextcloud::Base/Cron[nextcloud-cron]/ensure: created �[mNotice: Applied catalog in 1.80 seconds

Check failure on line 6 in spec/acceptance/nextcloud_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Ubuntu 20.04

nextcloud class works idempotently with no errors Failure/Error: apply_manifest(pp, catch_changes: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_093841555.37hqFX.pp Last 10 lines of output were: Info: Loading facts Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for ubuntu2004-64-puppet7.example.com in environment production in 0.36 seconds Info: Using environment 'production' Info: Applying configuration version '1718012325' �[mNotice: /Stage[main]/Nextcloud::Base/Cron[nextcloud-cron]/ensure: created �[mNotice: Applied catalog in 1.75 seconds

Check failure on line 6 in spec/acceptance/nextcloud_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Ubuntu 22.04

nextcloud class works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_093749942.cmnlTS.pp Last 10 lines of output were: Warning: /Stage[main]/Nextcloud::Base/File[/srv/www/nextcloud.example.com/persistent-data/data]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Base/Application[nextcloud-nextcloud.example.com]/Concat::Fragment[application-nextcloud-nextcloud.example.com]/Concat_fragment[application-nextcloud-nextcloud.example.com]: Skipping because of failed dependencies �[mNotice: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config]: Dependency Cron[nextcloud-cron] has failures: true Warning: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config/custom.config.php]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Wrapper/File[/usr/local/bin/occ]: Skipping because of failed dependencies Info: Stage[main]: Unscheduling all events on Stage[main] Error: Could not find a suitable provider for cron Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 62.88 seconds

Check failure on line 6 in spec/acceptance/nextcloud_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Ubuntu 22.04

nextcloud class works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_093716612.RrY0u9.pp Last 10 lines of output were: Warning: /Stage[main]/Nextcloud::Base/File[/srv/www/nextcloud.example.com/persistent-data/data]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Base/Application[nextcloud-nextcloud.example.com]/Concat::Fragment[application-nextcloud-nextcloud.example.com]/Concat_fragment[application-nextcloud-nextcloud.example.com]: Skipping because of failed dependencies �[mNotice: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config]: Dependency Cron[nextcloud-cron] has failures: true Warning: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Config/File[/srv/www/nextcloud.example.com/persistent-data/config/custom.config.php]: Skipping because of failed dependencies Warning: /Stage[main]/Nextcloud::Wrapper/File[/usr/local/bin/occ]: Skipping because of failed dependencies Info: Stage[main]: Unscheduling all events on Stage[main] Error: Could not find a suitable provider for cron Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 184.75 seconds
pp = <<~MANIFEST
# FIXME: Some distro don't have this directory. Change it to something more stable?
file { '/srv/www':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
}
class { 'nextcloud':
hostname => 'nextcloud.example.com',
database_password => 'the super secret password used by postgresql',
Expand Down

0 comments on commit 4d7f82a

Please sign in to comment.