This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ vagrant ssh | |
| vagrant@desenvolvimento:~$ ntpq -p | |
| remote refid st t when poll reach delay offset jitter | |
| ============================================================================== | |
| *a.ntp.br 200.160.7.186 2 u 40 64 1 708.855 173.625 279.205 | |
| b.ntp.br 200.160.7.186 2 u 40 64 1 1423.68 576.642 717.222 | |
| vagrant@desenvolvimento:~$ sudo docker run hello-world | |
| Unable to find image 'hello-world:latest' locally |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node 'desenvolvimento.eunati' { | |
| # Docker server deve estar sendo executado | |
| include 'docker' | |
| # Ntp deve estar sendo executado com os servidores 'a.ntp.br' e 'b.ntp.br' | |
| class { 'ntp': | |
| servers => [ 'a.ntp.br', 'b.ntp.br' ] | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A class with no parameters | |
| class base::linux { | |
| file { '/etc/passwd': | |
| owner => 'root', | |
| group => 'root', | |
| mode => '0644', | |
| } | |
| file { '/etc/shadow': | |
| owner => 'root', | |
| group => 'root', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node 'desenvolvimento.eunati' { | |
| # Variável com caminho do arquivo de configuração do ntp | |
| $file_ntp_config_file_path = '/etc/ntp.conf' | |
| # Atualizando apt | |
| exec { 'update': | |
| command => '/usr/bin/apt-get update' | |
| } | |
| # Pacote apache2 deve estar instalado |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ vagrant ssh | |
| vagrant@desenvolvimento:~$ ntpq -p | |
| remote refid st t when poll reach delay offset jitter | |
| ============================================================================== | |
| a.ntp.br 200.160.7.186 2 u 34 64 7 81.154 1789.04 48.647 | |
| b.ntp.br 200.160.7.186 2 u 34 64 7 69.011 1788.18 49.467 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==> default: Running provisioner: puppet... | |
| ==> default: Running Puppet with default.pp... | |
| ==> default: Notice: Compiled catalog for desenvolvimento.eunati in environment production in 0.06 seconds | |
| ==> default: Notice: /Stage[main]/Main/Node[desenvolvimento.eunati]/Exec[update]/returns: executed successfully | |
| ==> default: Notice: /Stage[main]/Main/Node[desenvolvimento.eunati]/Package[apache2]/ensure: created | |
| ==> default: Notice: /Stage[main]/Main/Node[desenvolvimento.eunati]/Package[ntp]/ensure: created | |
| ==> default: Notice: /Stage[main]/Main/Node[desenvolvimento.eunati]/Exec[ntp_config]/returns: executed successfully | |
| ==> default: Notice: /Stage[main]/Main/Node[desenvolvimento.eunati]/Service[ntp]: Triggered 'refresh' from 1 event | |
| ==> default: Notice: Applied catalog in 25.93 seconds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node 'desenvolvimento.eunati' { | |
| # Variável com caminho do arquivo de configuração do ntp | |
| $file_ntp_config_file_path = '/etc/ntp.conf' | |
| # Atualizando apt | |
| exec { 'update': | |
| command => '/usr/bin/apt-get update' | |
| } | |
| # Pacote apache2 deve estar instalado |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==> default: Running provisioner: puppet... | |
| ==> default: Running Puppet with default.pp... | |
| ==> default: Notice: Compiled catalog for desenvolvimento.eunati in environment production in 0.05 seconds | |
| ==> default: Notice: /Stage[main]/Main/Node[desenvolvimento.eunati]/Exec[update]/returns: executed successfully | |
| ==> default: Notice: /Stage[main]/Main/Node[desenvolvimento.eunati]/Package[apache2]/ensure: created | |
| ==> default: Notice: Applied catalog in 28.22 seconds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node 'desenvolvimento.eunati' { | |
| # Atualizando apt | |
| exec { 'update': | |
| command => '/usr/bin/apt-get update' | |
| } | |
| # Pacote apache2 deve estar instalado | |
| package { 'apache2': | |
| ensure => installed, | |
| require => Exec['update'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node 'desenvolvimento.eunati' { | |
| } |
NewerOlder