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.12
  • 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:
  uploads:
    - date.sh
  pipeline:
    - 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'
    mode: 'local'
  remote:
    path_kits: ''
    path_secrets: ''
    path_servers: ''
    mode: 'remote'

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

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.6.3.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ikctl-0.6.3-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ikctl-0.6.3.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for ikctl-0.6.3.tar.gz
Algorithm Hash digest
SHA256 517fa3c4b087879dca1e13fbb5f47d3c4f09ea757c1332283e5a2d92ea2b9a96
MD5 f0dedbd5cdb3cedf83943bc466b68139
BLAKE2b-256 85d8b0bf9f7439260181652453a474e3d25ec9768c12a187547d4b2755534b2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ikctl-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for ikctl-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2abef71cfc1a617c8d0f09a1d4edfc3c3d467e5ef07da7b77e87c5cacfd1b0d
MD5 c85a845dc46ae24644ed3505b49f21e6
BLAKE2b-256 8f8869ace67eecc0ea176251a52ad331735604b46fb832fae9952806046db494

See more details on using hashes here.

Supported by

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