수강이 제한됩니다.
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
opentable/win-2012r2-standard-amd64-nocm 이미지 실행시 403 Forbidden에러가 납니다.
안녕하세요, 최근에 강의를 다시 복습하고 있습니다.윈도우 관리하기 부분에서 강의처럼 vagrant cloud에 있는 opentable/win-2012r2-standard-amd64-nocm 를 사용하면 "The requested URL returned error: 403 Forbidden"에러가 나오면서 노드 생성에 실패합니다.처음 강의를 들었을때는 정상적으로 되던 부분이라 의아했었는데, vagrant cloud에서 직접 다운로드를 받으려고 해도 AccessDenied error창이 뜨더군요... 실습용으로 다른 윈도우 이미지를 사용하려고 하는데 어떤 이미지를 사용하는게 좋을까요?
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
다른 환경 질문
현재 rhel 8에서 ansible 및 vagrant를 진행중입니다. 아래 vagrant up 부분에서 오류가 나서 출력된 메세지를 첨부합니다. [root@master ~]# vagrant up Bringing machine 'default' up with 'libvirt' provider... ==> default: Checking if box 'generic/rhel8' version '3.2.10' is up to date... Traceback (most recent call last): 35: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run' 34: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/machine.rb:201:in `action' 33: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/machine.rb:201:in `call' 32: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:613:in `lock' 31: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/machine.rb:215:in `block in action' 30: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/machine.rb:246:in `action_raw' 29: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/runner.rb:89:in `run' 28: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/util/busy.rb:19:in `busy' 27: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/runner.rb:89:in `block in run' 26: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/builder.rb:149:in `call' 25: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/warden.rb:48:in `call' 24: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/builtin/config_validate.rb:25:in `call' 23: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/warden.rb:48:in `call' 22: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/builtin/box_check_outdated.rb:92:in `call' 21: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/warden.rb:48:in `call' 20: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/builtin/call.rb:52:in `call' 19: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/builder.rb:189:in `to_app' 18: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/builder.rb:189:in `new' 17: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/warden.rb:34:in `initialize' 16: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/warden.rb:34:in `map' 15: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/warden.rb:34:in `block in initialize' 14: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/warden.rb:121:in `finalize_action' 13: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/warden.rb:121:in `new' 12: from /root/.vagrant.d/gems/2.6.6/gems/vagrant-libvirt-0.3.0/lib/vagrant-libvirt/action/create_networks.rb:26:in `initialize' 11: from /root/.vagrant.d/gems/2.6.6/gems/vagrant-libvirt-0.3.0/lib/vagrant-libvirt/provider.rb:29:in `driver' 10: from /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 9: from /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 8: from /root/.vagrant.d/gems/2.6.6/gems/vagrant-libvirt-0.3.0/lib/vagrant-libvirt/driver.rb:1:in `<top (required)>' 7: from /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 6: from /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 5: from /root/.vagrant.d/gems/2.6.6/gems/fog-libvirt-0.8.0/lib/fog/libvirt.rb:4:in `<top (required)>' 4: from /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 3: from /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 2: from /root/.vagrant.d/gems/2.6.6/gems/ruby-libvirt-0.7.1/lib/libvirt.rb:11:in `<top (required)>' 1: from /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': /usr/lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b - /root/.vagrant.d/gems/2.6.6/gems/ruby-libvirt-0.7.1/lib/_libvirt.so (LoadError) 실행 환경이 윈도우가 아니여서 죄송합니다. 현재 ANSIBLE 진행 환경이 꼭 CentOS, RHEL 이여야만 합니다. 만약 해결이 안된다면 초기화라도 해서 다시 시도 하고싶은데 도움을 꼭 받고싶습니다. 감사합니다. 환경 : RHEL 8.3 PROVIDER: kvm 방화벽 : dead
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
ansible 까지 설치가 되지 않습니다....
안녕하세요. 질문이 있어 글 남깁니다. 알려주신 방식대로 진행을 하였으나 설치되는 과정에서의 로그도 다르고 VM에 centos 는 설치가 되는데 ansible이 설치 되지 않습니다. bootstrap.sh가 실행되지 않는 듯 합니다. 아래 저의 실행 로그를 함께 드립니다. 무엇이 문제인지 알고 싶습니다...그럼 답변 기다리겠습니다. 감사합니다.
- 해결됨[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
Ansible-Server에서 Windows node로 ping test가 안돼서 질문드립니다.
환경 host machine: MacOS ansible server : CentOS8 (box image : generic/centos8) ansible node : Windows2012R2 (box image : 실습과 동일) ansible version : 2.9.15 vagrant version : 2.2.14 현재 발생한 문제점 ansible-server에서 ansible-node03(windows2012r2)로 ping test가 안됨 host machine(macOS)에서 ansible-node03(windows2012r2)로 ping test가 안됨 pywinrm과 winrm 설정을 모두 마치고 ping test 하지만, ansible-node03(Windows2012r2) -> ansible-server ping이 감 ansible-node03 -> host machine(MacOS)로 ping이 감 Ansible_env_ready.yml TS 1. Windows 방화벽 문제일까? 강의 코드 중 `netsh firewall` 명령어가 잘 적용됐다는 log를 보았지만 최신 버전은 다를 수 있을꺼 같아서 명령어를 업데이트하고 각 profile마다 방화벽을 다 닫아 주었습니다. (Windows의 방화벽에서 ping test를 허용해주는 inbound문제일까 잠깐 생각했지만 방화벽을 끄면 해결되는 문제라서 강의처럼 방화벽을 껐습니다.) Vagranfile의 Ansible-node03(Windows2012r2) provision 부분 cfg.vm.provision "shell", inline: "netsh advfirewall set currentprofile state off" cfg.vm.provision "shell", inline: "netsh advfirewall set domainprofile state off" cfg.vm.provision "shell", inline: "netsh advfirewall set privateprofile state off" -> 여전히 안됨. 명령어 변경 부분 -> MS doc 참조 * traceroute로 ping 경로 추적 2. Vagrantfile의 windows 네트워크 설정 문제? Windows machine을 추가하는 코드는 다음과 같이 설정했습니다. Vagrantfile # Ansible-Node03 (Windows2012R2) config.vm.define:"ansible-node03" do |cfg| cfg.vm.box = "opentable/win-2012r2-standard-amd64-nocm" cfg.vm.provider:virtualbox do |vb| vb.name="Ansible-Node03" vb.customize ["modifyvm", :id, "--cpus", 2] vb.customize ["modifyvm", :id, "--memory", 2048] end cfg.vm.host_name="ansible-node03" cfg.vm.synced_folder ".", "/vagrant", disabled: true cfg.vm.network "public_network", ip: "192.168.35.13", bridge: "en0: Wi-Fi (Wireless)" cfg.vm.network "forwarded_port", guest: 22, host: 19213, auto_correct: false, id: "ssh" cfg.vm.provision "shell", inline: "netsh advfirewall set currentprofile state off" cfg.vm.provision "shell", inline: "netsh advfirewall set domainprofile state off" cfg.vm.provision "shell", inline: "netsh advfirewall set privateprofile state off" end 중간 network 설정중 bridge: "en0: Wi-Fi (Wireless)" 이부분은 매번 `vagrant up`으로 머신 생성 시 network interface를 묻는 부분이 나오길래 자동으로 진행하고자 추가했습니다. 그래서 결론은? Two Vagrant VMs cannot ping each other 참조 위 글을 참조하여 `ans Win -m "ping" -c local -k`의 명령어로 ping test는 성공의 결과가 나왔으나, 근본적으로 어떤 문제점으로 한 방향에서(Ansible-server에서 Windows로) ping test를 실패했는지 이유를 모르겠어서 질문드립니다. `and Win -m "ping" -c local -k`로 실행모습 Bridge network interface상 .10(ansible-server)와 .35(Windows2012r2)는 같은 network에 위치한거 같은데 통신이 안되는 이유가 어떤점때문인지.. 그전 linux 실습 상황에서 똑같이 bridge interface를 이용했을 때는 문제가 없었습니다. 이것저것 해보고 질문드리는 거라서, 아직도 많은 부분이 부족한것 같습니다. 긴 글 읽어주셔서 감사합니다.
- 해결됨[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
vagrant up 명령시 영상과 다른 결과가 나옵니다.
안녕하세요, 강좌를 보고 따라하고 있는데, 영상과 다른 결과가 나와서 문의 드립니다. vagrant up 명령을 실행하면 도중에 ==> ansible-node01: Available bridged network interfaces: 1) Realtek PCIe GBE Family Controller 2) Hyper-V Virtual Ethernet Adapter 라고 nic를 선택하게끔 나오는데 이 부분을 자동으로 넘어가게끔 할 수 있는 방법이 있을까요? 위의 선택지에서 1번을 선택하고 다음 단계로 넘어가면 아래와 같은 메시지를 남기면서 종료됩니다. The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! umount /mnt ansible-node01만 생성되고, 02 및 server는 vm이 생성되지 않는 상황입니다. 전체 vagrant up 실행 결과는 아래와 같습니다. c:\HashiCorp>vagrant up vagrant up Bringing machine 'ansible-node01' up with 'virtualbox' provider... Bringing machine 'ansible-node02' up with 'virtualbox' provider... Bringing machine 'ansible-server' up with 'virtualbox' provider... ==> ansible-node01: Importing base box 'centos/7'... [K==> ansible-node01: Matching MAC address for NAT networking... ==> ansible-node01: Checking if box 'centos/7' version '2004.01' is up to date... ==> ansible-node01: Setting the name of the VM: Ansible-Node01(Udemy-Bloter) ==> ansible-node01: Clearing any previously set network interfaces... ==> ansible-node01: Available bridged network interfaces: 1) Realtek PCIe GBE Family Controller 2) Hyper-V Virtual Ethernet Adapter ==> ansible-node01: When choosing an interface, it is usually the one that is ==> ansible-node01: being used to connect to the internet. ==> ansible-node01: ansible-node01: Which interface should the network bridge to? 1 ==> ansible-node01: Preparing network interfaces based on configuration... ansible-node01: Adapter 1: nat ansible-node01: Adapter 2: bridged ==> ansible-node01: Forwarding ports... ansible-node01: 22 (guest) => 19211 (host) (adapter 1) ==> ansible-node01: Running 'pre-boot' VM customizations... ==> ansible-node01: Booting VM... ==> ansible-node01: Waiting for machine to boot. This may take a few minutes... ansible-node01: SSH address: 127.0.0.1:19211 ansible-node01: SSH username: vagrant ansible-node01: SSH auth method: private key ansible-node01: ansible-node01: Vagrant insecure key detected. Vagrant will automatically replace ansible-node01: this with a newly generated keypair for better security. ansible-node01: ansible-node01: Inserting generated public key within guest... ansible-node01: Removing insecure key from the guest if it's present... ansible-node01: Key inserted! Disconnecting and reconnecting using new SSH key... ==> ansible-node01: Machine booted and ready! [ansible-node01] No Virtualbox Guest Additions installation found. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com Resolving Dependencies --> Running transaction check ---> Package centos-release.x86_64 0:7-8.2003.0.el7.centos will be updated ---> Package centos-release.x86_64 0:7-9.2009.0.el7.centos will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: centos-release x86_64 7-9.2009.0.el7.centos base 27 k Transaction Summary ================================================================================ Upgrade 1 Package Total download size: 27 k Downloading packages: No Presto metadata available for base Public key for centos-release-7-9.2009.0.el7.centos.x86_64.rpm is not installed warning: /var/cache/yum/x86_64/7/base/packages/centos-release-7-9.2009.0.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : centos-release-7-9.2009.0.el7.centos.x86_64 1/2 Cleanup : centos-release-7-8.2003.0.el7.centos.x86_64 2/2 Verifying : centos-release-7-9.2009.0.el7.centos.x86_64 1/2 Verifying : centos-release-7-8.2003.0.el7.centos.x86_64 2/2 Updated: centos-release.x86_64 0:7-9.2009.0.el7.centos Complete! Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com No package kernel-devel-3.10.0-1127.el7.x86_64 available. Error: Nothing to do Unmounting Virtualbox Guest Additions ISO from: /mnt umount: /mnt: not mounted ==> ansible-node01: Checking for guest additions in VM... ansible-node01: No guest additions were detected on the base box for this VM! Guest ansible-node01: additions are required for forwarded ports, shared folders, host only ansible-node01: networking, and more. If SSH fails on this machine, please install ansible-node01: the guest additions and repackage the box to continue. ansible-node01: ansible-node01: This is not an error message; everything may continue to work properly, ansible-node01: in which case you may ignore this message. The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! umount /mnt Stdout from the command: Stderr from the command: umount: /mnt: not mounted c:\HashiCorp>
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
mac os vagrant 설정
mac에서 vagrant 설정하면서 실습해보고 있는데 vagrant up 명령어 후 Stderr: VBoxManage: error: The virtual machine 'vagrant_default_1606268034986_5540' has terminated unexpectedly during startup with exit code 1 (0x1) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine ns failure 오류가 나서 virtualbox를 다시 설치해보아라 그런것도 있긴한데 구글링하면서 계속 해봐도 잘 안풀리네요...
- [기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
베이그런트로 centos 및 asible을 배포 했는데 아이디 비번이 어떻게 되나요?
삭제된 글입니다
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
윈도우 cmd창
안녕하세요 최근에 프로젝트에서 앤서블을 도입하게되어 조훈님의 강의를 보면서 앤서블에 대한 지식을 쌓고있는 신입개발자 입니다. 앤서블과는 무관한 질문이 될지 모르겠는데요.. vagrant up을 실행하게되면 그 결과가 cmd창에 찍히게 되는데 이게 가끔은 엔터키를 쳐줘야지만 다음 실행결과 들이 보이는 경우가 있더라구요 혹시 이런 문제를 어떻게 해결하는지 알 수 있을까요?
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
오류가나서요 ..
혹시 코드 적으신거는 자료실에 없나요 ?
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
Install nssm 단계에서 안넘어갑니다.
안녕하세요.이 번 강좌 내용 중 Windows에 nginx 설치하는 내용중 Install nssm 단계에서 넘어가질 않아 이리저리 확인해본 결과, windows 노드에 접속 후 C:ProgramDatachocolatey로 이동 후 직접 인스톨 명령을 입력하니까 설치가 되네요. 실행 결과는 아래와 같습니다.c:\ProgramData\chocolatey>choco.exe install nssmChocolatey v0.10.13Installing the following packages:nssmBy installing you accept licenses for the packages.Progress: Downloading NSSM 2.24.101.20180116... 100%NSSM v2.24.101.20180116 [Approved]nssm package files install completed. Performing other installation steps.The package NSSM wants to run 'chocolateyInstall.ps1'.Note: If you don't run this script, the installation will fail.Note: To confirm automatically next time, use '-y' or consider:choco feature enable -n allowGlobalConfirmationDo you want to run the script?([Y]es/[N]o/[P]rint): yInstalling 64 bit versionExtracting C:\ProgramData\chocolatey\lib\NSSM\tools\nssm-2.24-101-g897c7ad.zip to C:\ProgramData\chocolatey\lib\NSSM\tools...C:\ProgramData\chocolatey\lib\NSSM\tools ShimGen has successfully created a shim for nssm.exe The install of nssm was successful. Software installed to 'C:\ProgramData\chocolatey\lib\NSSM\tools'Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).제 추측에는 중간에 script를 실행할 거냐라고 물어보는 단계가 있는데 이게 앤서블에서 실행시 걸리는 것 같은데 확인 부탁드립니다.P.S. 위와 같이 수동 설치 후 nginx-install.yml 돌리면 정상 동작합니다. 당연하겠지만요...ㅎㅎ;
- 미해결[기초-응용] 다양한 환경을 앤서블(Ansible)로 관리하기 with 베이그런트(Vagrant)
ssh 비밀번호뭔가요?
ans all -m ping -k 로 호스트 노드로 ping 통신하려고할때ssh 비밀번호 넣어야되는데, vagrant로 vm 올릴때 패스워드 따로 설정준것 없지 않았나요?ㅠㅠ뭐지....