관리 대상 시스템에서 퍼팻 에이전트를 실행합니다. base::ssh 클래스에 작성했던 notify 리소스의 흔적이 로그에 남을 것입니다.
administrator@vm03:~$ sudo /opt/puppetlabs/bin/puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for vm03.linuxmastery.kr
Info: Applying configuration version '1581092397'
Notice: ===== base::install =====
Notice: /Stage[main]/Base::Install/Notify[===== base::install =====]/message: defined 'message' as '===== base::install ====='
Notice: ===== base::vim =====
Notice: /Stage[main]/Base::Vim/Notify[===== base::vim =====]/message: defined 'message' as '===== base::vim ====='
Notice: /Stage[main]/Base::Ssh/File[.ssh]/ensure: created
Notice: /Stage[main]/Base::Ssh/File[authorized_keys]/ensure: defined content as '{md5}5ea868e873e3fead8ee0ea260678e99a'
Notice: ===== base::ssh =====
Notice: /Stage[main]/Base::Ssh/Notify[===== base::ssh =====]/message: defined 'message' as '===== base::ssh ====='
Notice: ===== base =====
Notice: /Stage[main]/Base/Notify[===== base =====]/message: defined 'message' as '===== base ====='
Notice: Applied catalog in 1.60 seconds
가상 게스트로 원격 접속이 가능해졌습니다. 공개키가 활성화된 상태에서 접속할 수 있습니다.
supreme@master:~$ ssh administrator@10.200.200.103