DEV Community

Duygu Ölmez for Liman

Posted on

4 2

Ansible İle Miço Debian Ajanı Dağıtma

Yerli bir SCCM alternatifi olan Miço, windows işletim sistemi, redhat ve debian tabanlı işletim sistemlerine rahatlıkla kurulabilmektedir.
Birden fazla linux makineye kurulum yapılmak istendiğinde akla ilk ansible gelmektedir.

Bu dokümanda Pardus 21 Sunucu üzerine kurulu ansible uygulaması kullanılarak Debian tabanlı makinelere Miço ajanının kurulumu anlatılmıştır. (github deposu)

  • Öncelikle Pardus 21 Sunucusu üzerine ansible ve gerekli diğer paketler yüklenir
apt install ansible git sshpass
Enter fullscreen mode Exit fullscreen mode
  • /opt dizinine gidilerek ansible-mico indirilir
cd /opt
sudo git clone https://github.com/aciklab/ansible-mico.git
Enter fullscreen mode Exit fullscreen mode
  • Mevcut Miço deb paketi ve osquery paketleri /opt/ansible-micofiles/deb/ dizini altına kopyalanır. Image description

✅ osquery'nin en güncel paketi için osquery'nin ziyaret edebilirsiniz.

  • /opt/ansible-mico/inventory/hosts dosyasına [deb] başlığı altına Miço ajanı yüklenecek makinenin IP adresi, ssh kullanıcı adı, ssh kullanıcısının parola ve sudo parola bilgilerini yazmak gerekmektedir.
[deb]
192.168.5.8 ansible_ssh_user=sysadmin ansible_ssh_pass=1 ansible_sudo_pass=1
Enter fullscreen mode Exit fullscreen mode
  • /opt/ansible-mico/vars/mico-vars.yml dosyası içerisine Miço sunucusunun ip adresi aşağıdaki şekilde yazılır.
mico_server: "192.168.5.10"
Enter fullscreen mode Exit fullscreen mode
  • /opt/ansible-mico dizinine gidilir ve aşağıdaki şekilde ansible komutu çalıştırılır.
cd /opt/ansible-mico
ansible-playbook playbooks/deb.yml 
Enter fullscreen mode Exit fullscreen mode

Image description

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay