Giter Site home page Giter Site logo

t106362512 / nctu-na-2022-ldap-anisble Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 39 KB

計算機網路管理 Computer Network Administration - 使用 Ansible 自動化地完成 NCTU NA 2022 HW4 作業,此外還有提供 chore/ldap_cmd_example.sh 作業中可能會需要用的指令

Jinja 70.11% Shell 29.89%
nycu ansible ldap vagrant computer-network-administration nctu nctucs

nctu-na-2022-ldap-anisble's Introduction

NCTU-NA-2022-LDAP-ANISBLE

使用方式

  1. 安裝 Ansible 與 Python

    # 用 pipx 隔離套件
    python3 -m pip install --user pipx
    python3 -m pipx ensurepath
    pipx install ansible --include-deps
  2. 配置測試環境(這個東西就用來在虛擬測試而已, 如果你要直接裝在實體機的話, 可跳過)

    1. 安裝 VagrantVirtualBox, 不喜歡也能使用其他 Providers

    2. 安裝 vagrant-hosts plugin, 以讓每台機器自動更新對應的 hosts.(可參考 ansible-openldap/provisioner/Vagrantfile, 裡面有為 router 安裝並設定 coredns, 如果有 dns 的話就不需要它了)

      vagrant plugin install vagrant-hosts
    3. 可更改 ansible-openldap/provisioner/Vagrantfile 的規格, hostname, 或是 forwarded_port, 後續 Ansibe 的東西也要對著改

    4. 移動到 ansible-openldap/provisioner 後, 輸入以下指令安裝並啟動所有機器

      vagrant up
  3. 使用 chore/gen_rootca_cert_quick.sh 快速地產生自簽的 CA 憑證

  4. 可更改 ansible-openldap/inventory/inventory.ini 以設定該如何連到這些機器(帳號也在裡面, 反正就是一個測試用的~)

  5. 可更改 ansible-openldap/group_vars/all.yml 以設定整組 LDAP

  6. 移動到資料夾 ansible-openldap 後, 使用以下指令部署整組 LDAP

    ansible-playbook ldap-playbook.yml
  7. 倘若不想自己寫 ldif 或 cli 操作, 可使用 chore/docker-compose.yml 來快速部一個 phpldapadmin 來編輯與瀏覽

nctu-na-2022-ldap-anisble's People

Contributors

t106362512 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.