❯ docker run -it ubuntu:22.04 |
root@10d181367a3d:/# apt-get update -qq && apt-get install -y curl >/dev/null |
debconf: delaying package configuration, since apt-utils is not installed |
root@10d181367a3d:/# curl -OsS https://apt.puppet.com/puppet7-release-jammy.deb |
root@10d181367a3d:/# dpkg -i puppet7-release-jammy.deb >/dev/null |
root@10d181367a3d:/# apt-get update -qq && apt-get install -y puppet-agent >/dev/null |
debconf: delaying package configuration, since apt-utils is not installed |
root@10d181367a3d:/# dpkg -l | grep python3.9 |
root@10d181367a3d:/# /opt/puppetlabs/bin/puppet apply --debug -e 'package { "python3.9": ensure => present }' |
. . . stripped for readability . . . |
Info: Applying configuration version '1671081429' |
Debug: Prefetching apt resources for package |
Debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n'' |
Debug: Executing: '/usr/bin/apt-mark showmanual' |
Debug: Executing: '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n' python3.9' |
Debug: Executing: '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python3.9' |
Notice: /Stage[main]/Main/Package[python3.9]/ensure: created |
Debug: Executing: '/usr/bin/apt-mark manual python3.9' |
Debug: /Package[python3.9]: The container Class[Main] will propagate my refresh event |
. . . |
root@10d181367a3d:/# echo $? |
0 |
root@10d181367a3d:/# dpkg -l | grep python3.9 |
root@10d181367a3d:/# /opt/puppetlabs/bin/puppet apply -e 'package { "python3.9": ensure => present }' |
Notice: Compiled catalog for 10d181367a3d in environment production in 0.23 seconds |
Notice: /Stage[main]/Main/Package[python3.9]/ensure: created |
Notice: Applied catalog in 2.83 seconds
|