Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro na execução do puppet apply

Estou recebendo este erro ao realizar o apply do puppet.

vagrant@ubuntu-bionic:~$ puppet apply /vagrant/configs/manifests/phpweb.pp Notice: Compiled catalog for ubuntu-bionic in environment production in 0.47 seconds

Notice: /Stage[main]/Main/Exec[apt-update]/returns: Reading package lists...

Notice: /Stage[main]/Main/Exec[apt-update]/returns: E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

Notice: /Stage[main]/Main/Exec[apt-update]/returns: W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)

Notice: /Stage[main]/Main/Exec[apt-update]/returns: W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)

Error: '/usr/bin/apt-get update' returned 100 instead of one of [0]

Error: /Stage[main]/Main/Exec[apt-update]/returns: change from 'notrun' to ['0'] failed: '/usr/bin/apt-get update' returned 100 instead of one of [0] Notice: /Stage[main]/Main/Package[php7.2]: Dependency Exec[apt-update] has failures: true

Warning: /Stage[main]/Main/Package[php7.2]: Skipping because of failed dependencies

Notice: /Stage[main]/Main/Package[php7.2-mysql]: Dependency Exec[apt-update] has failures: true

Warning: /Stage[main]/Main/Package[php7.2-mysql]: Skipping because of failed dependencies

Notice: /Stage[main]/Main/Exec[run-php7]: Dependency Exec[apt-update] has failures: true

Warning: /Stage[main]/Main/Exec[run-php7]: Skipping because of failed dependencies

Notice: Applied catalog in 0.13 seconds

Meu arquivo de configuração:

exec { 'apt-update':
    command => '/usr/bin/apt-get update' 
}

package { ['php7.2' ,'php7.2-mysql'] :
    require => Exec['apt-update'],
    ensure => installed,
}

exec { 'run-php7':
    require => Package['php7.2'],
    command => '/usr/bin/php -S 192.168.0.51:8888 -t /vagrant/src &'
}

Alguém pode me ajudar?

1 resposta
solução!

Resolvido.

Não estava executando o apply como "sudo".

Obg!