인프런 영문 브랜드 로고
인프런 영문 브랜드 로고
BEST
개발 · 프로그래밍

/

데브옵스 · 인프라

구성 관리 자동화 도구 - 앤서블(Ansible)

앤서블을 통해서 다양한 환경(리눅스🐧, 윈도우📱 그리고 네트워크📶 시스템)을 자동화하는 방법에 대해서 배워봅시다. 🥇 이를 통해 다양한 시스템을 앤서블로 통일해서 관리할 수 있습니다. 그리고 작성한 앤서블 코드를 고도화🧑‍🔧 하는 방법에 대해서 알아보겠습니다. 즉 보다 효과적으로 빠르게🏃 동작하도록 코드를 작성하는 법에 대해서 알아볼 것입니다.

(4.8) 수강평 33개

수강생 597명

Thumbnail

[실습] Git Repo 하위 디렉토리에서 한글 이름 제외

안녕하세요 

맥 사용자 분들 및 일부 사용자 분들에게서 아래와 같이 디렉터리 경로에 한글이 들어가면 

인코딩 이슈가 일어나는 것을 발견했습니다.

 vagrant up

Traceback (most recent call last):

29: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/bin/vagrant:168:in `<main>'

28: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/bin/vagrant:168:in `new'

27: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:178:in `initialize'

26: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:983:in `process_configured_plugins'

25: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:956:in `find_configured_plugins'

24: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:956:in `each'

23: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:958:in `block in find_configured_plugins'

22: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/vagrantfile.rb:237:in `machine_config'

21: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/vagrantfile.rb:201:in `block in machine_config'

20: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/box_collection.rb:280:in `find'

19: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/box_collection.rb:456:in `with_collection_lock'

18: from /opt/vagrant/embedded/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'

17: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/box_collection.rb:457:in `block in with_collection_lock'

16: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/box_collection.rb:304:in `block in find'

15: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/box_collection.rb:304:in `each'

14: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/box_collection.rb:311:in `block (2 levels) in find'

13: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/box_collection.rb:311:in `each'

12: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/box_collection.rb:321:in `block (3 levels) in find'

11: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/box_collection.rb:321:in `call'

10: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:525:in `hook'

 9: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/action/runner.rb:34:in `run'

 8: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:205:in `block in action_runner'

 7: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:542:in `host'

 6: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:542:in `new'

 5: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/host.rb:13:in `initialize'

 4: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/capability_host.rb:36:in `initialize_capabilities!'

 3: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/capability_host.rb:117:in `autodetect_capability_host'

 2: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/capability_host.rb:117:in `inspect'

 1: from /opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:193:in `inspect'

/opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:193:in `encode': "\xEB" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII (Encoding::UndefinedConversionError)

그래서 금주 내로 Repo에서 한글을 모두 빼기로 결정했습니다. 

그래서 이름이 아마도...ch1(챕터) >  1.1(서브 디렉터리) 와 같은 형식으로 변경될 예정입니다. 

실습에 참고 부탁드려요 :)  Repo 이름은 그대로 갑니다. 

감사합니다. 

조훈 드림.

댓글