pax_global_header00006660000000000000000000000064150141520630014507gustar00rootroot0000000000000052 comment=a062497e93f98b504d42b7772ce6e98a97763044 .gitignore000066400000000000000000000000421501415206300130370ustar00rootroot00000000000000*.iso *.qcow2 .cache/ .sparrowdo/ .tom/000077500000000000000000000000001501415206300117305ustar00rootroot00000000000000.tom/commit.raku000066400000000000000000000003421501415206300141030ustar00rootroot00000000000000#!raku my $msg = prompt("message: "); if ".git-commit-prefix".IO ~~ :e { my $prefix = ".git-commit-prefix".IO.lines.head; $msg = "{$prefix} {$msg}"; } task-run "commit my changes", "git-commit", %( message => $msg ); .tom/git-branch-delete.raku000066400000000000000000000001131501415206300160650ustar00rootroot00000000000000task-run "git delete branch", "git-branch-delete", %( branch => "123" ); .tom/git-publish.raku000066400000000000000000000001001501415206300150320ustar00rootroot00000000000000#!raku EVALFILE ".tom/commit.raku"; EVALFILE ".tom/push.raku"; .tom/git-summary.raku000066400000000000000000000000541501415206300150710ustar00rootroot00000000000000#!raku bash "git diff"; bash "git status"; .tom/github-url-https-to-ssh.raku000066400000000000000000000000741501415206300172520ustar00rootroot00000000000000#!raku task-run "fix-https-ssh", "git-url-https-to-ssh"; .tom/pull.raku000066400000000000000000000000521501415206300135650ustar00rootroot00000000000000#!raku task-run "git pull", "git-pull"; .tom/push.raku000066400000000000000000000000771501415206300135770ustar00rootroot00000000000000#!raku task-run "git push", "git-push", %( confirm => "no" ); .tom/set-git.raku000066400000000000000000000002501501415206300141650ustar00rootroot00000000000000#!perl6 task-run "set git", "git-base", %( email => 'melezhik@gmail.com', name => 'Alexey Melezhik', config_scope => 'local', set_credential_cache => 'on' ); .tom/status.raku000066400000000000000000000000341501415206300141340ustar00rootroot00000000000000#!raku bash "git status"; .tom/update-branch-list.raku000066400000000000000000000000621501415206300163000ustar00rootroot00000000000000#!raku bash "git remote update origin --prune"; README.md000066400000000000000000000101131501415206300123260ustar00rootroot00000000000000# Wordpress LAMP test for Sparky Check Wordpress LAMP installation on Rocky Linux by running official playbook on virtual machine. This requires the Sparky setup for Rocky: https://git.resf.org/testing/Sparky_Rocky . Please see the getting started guide: https://git.resf.org/testing/Sparky_Getting_Started . # Cookbook https://docs.rockylinux.org/guides/cms/wordpress-on-lamp # Report example ``` 18:27:08 :: [repository] - index updated from http://sparrowhub.io/repo/api/v1/index [task run: task.bash - files/tasks/lamp] [task stdout] 18:27:24 :: Last metadata expiration check: 1:08:37 ago on Sat 22 Feb 2025 05:18:47 PM UTC. 18:27:30 :: Dependencies resolved. 18:27:30 :: Nothing to do. 18:27:30 :: Complete! 18:27:33 :: Last metadata expiration check: 1:08:46 ago on Sat 22 Feb 2025 05:18:47 PM UTC. 18:27:39 :: Package httpd-2.4.37-65.module+el8.10.0+1938+3b7755d4.3.x86_64 is already installed. 18:27:39 :: Dependencies resolved. 18:27:39 :: Nothing to do. 18:27:39 :: Complete! 18:27:44 :: Last metadata expiration check: 1:08:57 ago on Sat 22 Feb 2025 05:18:47 PM UTC. 18:27:49 :: Package mariadb-server-3:10.3.39-1.module+el8.8.0+1452+2a7eab68.x86_64 is already installed. 18:27:49 :: Dependencies resolved. 18:27:49 :: Nothing to do. 18:27:49 :: Complete! 18:27:50 :: mysql_secure_installation is already done, skip this step 18:27:54 :: Last metadata expiration check: 1:09:07 ago on Sat 22 Feb 2025 05:18:47 PM UTC. 18:27:59 :: Package php-7.2.24-1.module+el8.4.0+413+c9202dda.x86_64 is already installed. 18:27:59 :: Package php-mysqlnd-7.2.24-1.module+el8.4.0+413+c9202dda.x86_64 is already installed. 18:27:59 :: Package php-gd-7.2.24-1.module+el8.4.0+413+c9202dda.x86_64 is already installed. 18:27:59 :: Package php-xml-7.2.24-1.module+el8.4.0+413+c9202dda.x86_64 is already installed. 18:27:59 :: Package php-mbstring-7.2.24-1.module+el8.4.0+413+c9202dda.x86_64 is already installed. 18:27:59 :: Dependencies resolved. 18:27:59 :: Nothing to do. 18:27:59 :: Complete! 18:28:00 :: wp distro is copied, skip this step 18:28:04 :: Last metadata expiration check: 1:09:17 ago on Sat 22 Feb 2025 05:18:47 PM UTC. 18:28:09 :: Package firewalld-0.9.11-9.el8_10.noarch is already installed. 18:28:09 :: Dependencies resolved. 18:28:09 :: Nothing to do. 18:28:09 :: Complete! [task stderr] 18:28:22 :: ++ sudo sed -i -e s/database_name_here/LOCALDEVELOPMENTENV/g /var/www/html/wp-config.php 18:28:22 :: ++ sudo sed -i -e s/username_here/admin/g /var/www/html/wp-config.php 18:28:22 :: ++ sudo sed -i -e s/password_here/wp_password/g /var/www/html/wp-config.php 18:28:22 :: ++ set -x 18:28:22 :: ++ sudo dnf install firewalld -y 18:28:22 :: ++ sudo chcon -R -t httpd_sys_rw_content_t /var/www/html/ 18:28:22 :: ++ sudo setsebool -P httpd_can_network_connect true [task run: task.bash - bash: http check for WP localhost] [task stdout] 18:28:40 :: HTTP/1.1 302 Found 18:28:40 :: Date: Sat, 22 Feb 2025 18:28:39 GMT 18:28:40 :: Server: Apache/2.4.37 (Rocky Linux) 18:28:40 :: X-Powered-By: PHP/7.2.24 18:28:40 :: Expires: Wed, 11 Jan 1984 05:00:00 GMT 18:28:40 :: Cache-Control: no-cache, must-revalidate, max-age=0 18:28:40 :: X-Redirect-By: WordPress 18:28:40 :: Location: http://127.0.0.1/wp-admin/install.php 18:28:40 :: Content-Length: 0 18:28:40 :: Content-Type: text/html; charset=UTF-8 18:28:40 :: 18:28:41 :: task exit status: 1 18:28:41 :: task bash: http check for WP localhost FAILED The spawned command 'ssh -l admin -q -o ConnectionAttempts=1 -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=300 -o ServerAliveCountMax=2 -tt -p 10022 admin@127.0.0.1 bash --login .sparrowdo/env/default/.sparrowdo/sparrowrun.sh' exited unsuccessfully (exit code: 1, signal: 0) in block at /Users/user/projects/rakudo/rakudo-moar-2024.12-01-macos-arm64-clang/share/perl6/site/resources/E566A9246E95BAE38B1E9E4CB59A597B5F43B839 line 13 in sub MAIN at /Users/user/projects/rakudo/rakudo-moar-2024.12-01-macos-arm64-clang/share/perl6/site/bin/sparrowdo line 3 in block at /Users/user/projects/rakudo/rakudo-moar-2024.12-01-macos-arm64-clang/share/perl6/site/bin/sparrowdo line 1 ``` files/000077500000000000000000000000001501415206300121555ustar00rootroot00000000000000files/tasks/000077500000000000000000000000001501415206300133025ustar00rootroot00000000000000files/tasks/lamp/000077500000000000000000000000001501415206300142335ustar00rootroot00000000000000files/tasks/lamp/config.yaml000066400000000000000000000001051501415206300163600ustar00rootroot00000000000000mysql_root_password: complex_password mysql_wp_password: wp_password files/tasks/lamp/task.bash000066400000000000000000000051241501415206300160360ustar00rootroot00000000000000set -e mysql_root_password=$(config mysql_root_password) mysql_wp_password=$(config mysql_wp_password) echo "mysql_root_password: ${mysql_root_password}" echo "mysql_wp_password: ${mysql_wp_password}" sudo dnf upgrade -y sudo dnf install httpd -y sudo systemctl enable --now httpd sudo dnf install mariadb-server -y sudo systemctl enable --now mariadb #sudo mysql_secure_installation --use-default # because mysql_secure_installation is hard to do # in unattended way # this is technical equivalent if test -f /var/lib/mysql/mysql_secure_installation.done; then echo "mysql_secure_installation is already done, skip this step" else sudo mysql -sfu root < WordPress › Installation end: main.raku000066400000000000000000000001051501415206300126570ustar00rootroot00000000000000#!raku task-run "files/tasks/lamp"; task-run "files/tasks/verify";