TAILIEUCHUNG - Automating Linux and Unix System Administration phần 9

Sau đó, chúng tôi cần để sao chép những tập tin này vào thư mục trên rhmaster máy chủ sử dụng cfengine. Một lần nữa bản sao làm việc của chúng tôi, chúng tôi tạo ra các thư mục, và tạo ra một nhiệm vụ trong các thư mục gọi là với các nội dung: | CHAPTER 11 INFRASTRUCTURE ENHANCEMENT 341 cd masterfiles PROD repl root mkdir -p kickstart rhel5_2 scp -r root@rhmaster kickstart kickstart scp -r root@rhmaster kickstart scripts kickstart scp root@rhmaster kickstart rhel5_2 kickstart rhel5_2 svn add kickstart After that we needed to copy out these files to the kickstart directory on the host rhmaster using cfengine. Once again in our working copy we created the directory PROD inputs tasks app kickstart and created a task in the directory called dir with these contents copy kickstart_server master repl root kickstart dest kickstart mode 755 r inf owner root group root type checksum server fileserver encrypt true directories kickstart_server kickstart mode 755 owner root group root inform false We added the PROD inputs tasks app kickstart directory to Subversion with svn add once we had the task file inside it. Next we needed to do the usual steps in order to make this task get used by our Kickstart server. Here s a summary of the steps 1. Create the kickstart_server class in PROD inputs classes . 2. Create the hostgroup file at PROD inputs hostgroups that imports the task. Add the file to the Subversion repository. 3. Set up the hostgroup import in the hostgroup mapping file PROD inputs hostgroups . 4. Commit the changes to your working copy and update the production working copy on the cfengine master. 342 CHAPTER 11 INFRASTRUCTURE ENHANCEMENT Now our important Kickstart files are contained in Subversion and will be restored by cfengine via a copy if we ever have to rebuild our Kickstart server. FAI When we set up FAI we were careful to modify the default FAI configuration files as little as possible. We wanted to be able to push new files as much as possible since we knew that we would want to distribute those files using cfengine later on. We collected all the files under the srv fai config .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.