Re: ARA: Example Heat Orchestration Template with Multiline "command:"

23 views
Skip to first unread message

Babu, Sarath [E CPE]

unread,
Jul 10, 2024, 10:57:51 AM7/10/24
to Kandes, Martin, ara-...@googlegroups.com, sup...@arawireless.org, ara-s...@iastate.edu

Hi Marty,

 

Thanks a lot for sharing the experiment profile with the community. The profiles will definitely help the automation as well as the reproducibility aspects of experiments. Soon, we can come up with a platform for users for sharing their experiment profiles so that they can be loaded in the portal directly from the platform.

 

Regards

Sarath

 

From: Kandes, Martin <mka...@sdsc.edu>
Date: Tuesday, July 9, 2024 at 5:43
PM
To: ara-...@googlegroups.com <ara-...@googlegroups.com>
Cc: sup...@arawireless.org <sup...@arawireless.org>, ara-s...@iastate.edu <ara-s...@iastate.edu>
Subject: ARA: Example Heat Orchestration Template with Multiline "command:"

Hi all,

 

I just wanted to share this example template that might help setup and configure your containers on startup [1]. 

 

Marty

 

 

--

Marty Kandes, Ph.D.

Computational & Data Science Research Specialist

High-Performance Computing User Services Group

Data-Enabled Scientific Computing Division

San Diego Supercomputer Center

University of California, San Diego

 

[1]

 

heat_template_version: '2015-04-30'

resources:

  lease_0:

    type: OS::Blazar::Lease

    properties:

      start_date: ''

      end_date: ''

      name: AgronomyFarmEdge

      reservations:

      - resource_properties:

        - Site: AgronomyFarm

          Resource_Type: ComputeNode

          Device_Type: Edge

          Device_ID: '000'

  container_0:

    type: OS::Zun::Container

    depends_on:

    - lease_0

    properties:

      name: AgronomyFarmEdge

      image: arawirelesshub/ara-edge:base

      image_driver: docker

      image_pull_policy: always

      restart_policy: always

      hints:

        host_name: AgronomyFarm-Edge-000

      cpu: 1.0

      memory: '512'

      hostname: AgronomyFarmEdge

      networks:

      - network: ARA_Shared_Net

        fixed_ip: 10.0.4.239

      interactive: True

      command:

        str_replace:

          template: /bin/bash -c >-"

 

            echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config;

            echo 'ssh_pubkey' > /root/.ssh/authorized_keys;

            service ssh restart;

 

            apt-get update;

 

            apt-get -y install dnsutils;

            apt-get -y install iproute2;

            apt-get -y install iputils-ping;

            apt-get -y install net-tools;

            apt-get -y install traceroute;

 

            /bin/bash"

          params:

            ssh_pubkey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDSzjVQxM3vWDsGp9qiZl9bB9VOcj0uaIidaaygSoDZ3x7sDOwX54OKQZITR6n62So0JDFSHP6clu5ZMqqXxD904ngKQUcWjC5RCklhTg0YgYWUTSCJcbn664/YPSr6Nopl5uentRm9r8dGUlA6i5tdRmJntpt8oWXDDNR+bYdRv956FBTYoP+Q0whweiNv4YjTNMu5ZkKEXR5zwj+VULSzz4Ra5GdM9On6bXL9zUC/vr+MYZTy86Xsu9Zx1GkPwhjNqQT0CafziyvYVFONljBBZ3EUpoV5VnQaYtvIJ3+oTzOLAeT1ToLp7gqO+nAknhXQMKauNIN18AAgZ0BC1+GT2ql2FWrbJ92QqWLtaBXeJ9DWjUX2AimBClRv2glqqtYIJF8E/nU8l6JuKQO3DXtohTb4IrZKKivPfGdBBiXW3Uo9Do6DZtCp7ju5LYThoYfPel5ZOiMlbY23WZXck9IJqaDbNK4jcu8vvrc+N9J3LG3V1uJY1+trU9NIZxsz4FMpbVu1FvzhonsTVf13826oW56CsSKPhhsSF8v/iwg82DlXnz0WKtsTRB0PRlnHGEssBDNvCqn8OPeBRXzdp038Qz6SsKIGOZcVoUod9xuQpCMApyPwBcGt5E2JP/KUHEHU95a/pljidYJYj/MtbCrgP92+msEBh7l+BffaL8Ps3Q== mkandes@hardtack

Reply all
Reply to author
Forward
0 new messages