Skip to main content

App to installer packages on remote servers

Project description

--- This document is not finished ---

ikctl (install kit control)

You can use this app to install packages on remote servers (linux).

Description

This app use ssh protocol to connect on remote servers and running bash script to install packages.

Getting Started

Dependencies

  • Python 3.10
  • paramiko
  • pyaml
  • envyaml

Installing

To install ikctl you only need pip command

pip install ikctl

When the installation finished you will need to create folder with yours bash scripts and config files:

Create folder

mkdir ~/kits

Create config file where you add yours servers

cat <<EOF | tee ~/kits/config.yaml
servers:
  - name: your-server-name
    user: your-user
    hosts: [10.0.0.67]
    port: 22
    password: $PASSWORD/<your password>
    pkey: "/home/your-home-name/.ssh/id_rsa"
EOF

You will need to add a variable called password with the server access password:

export PASSWORD="your password"

Create ikctl config file where we will indicate our kits.

cat <<EOF | tee ~/kits/ikctl.yaml
kits:
  - show-date/ikctl.yaml
EOF

Create folder with our kit

mkdir ~/kits/show-date

In this folder we go to add the follow structure

cat <<EOF | tee ~/kits/show-date/date.sh
#!/bin/bash
date
EOF

# And

cat <<EOF | tee ~/kits/show-date/ikclt.yaml
kits:
- date.sh
EOF

To finish config we need to add path to config file in "~/.ikctl/config"


# editing file config

vim ~/.ikctl/config

context: local
contexts:
  local:
    path_kits: 'path-to-kits/kits'
    path_secrets: '' <= doesn't work, yet
    path_servers: 'path-to-kits/kits'
  remote:
    path_kits: ''
    path_secrets: ''
    path_servers: ''

Executing program

  • Get servers
ikctl -l servers
  • Get kits
ikctl -l kits
  • Run ikctl to execute bash script
ikctl -i show-date -n your-server-name

Version History

  • 0.1
    • Initial Release

License

This project is licensed under the Apache License License - see the LICENSE.md file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ikctl-0.1.7.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

ikctl-0.1.7-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file ikctl-0.1.7.tar.gz.

File metadata

  • Download URL: ikctl-0.1.7.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ikctl-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2b3deb42b40e2ac3b40092c3cdf3df4fb14f08f7ba6521d6b8be9080f9588cde
MD5 432db493e6c0aa0d74af729452d0fe58
BLAKE2b-256 15dd16ba504c72786adf5f3eb87226b1e6e892e4a02cfbca1266d88ed811471e

See more details on using hashes here.

File details

Details for the file ikctl-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: ikctl-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ikctl-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5bf2f00f75978d34ae72417e2741218882cf3a0932fcf002b4615e23e3b011ac
MD5 34a17828a9ceb185b43246a55f70d5f3
BLAKE2b-256 4b2f64f5455232d41c0a59a33733355665d1f55c5ee3ec3c28d810b0d67ab3e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page