Changes between Version 4 and Version 5 of EGIFedCloud


Ignore:
Timestamp:
Mar 17, 2016 2:23:00 PM (6 years ago)
Author:
carlos
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EGIFedCloud

    v4 v5  
    44https://appdb.egi.eu/store/vappliance/egi.ubuntu.14.04
    55
    6 $ ssh-keygen -t rsa -b 2048 -f tmpfedcloud
    7 $ cat > tmpfedcloud.login << EOFusers:
     6{{{
     7#!/bin/bash
     8[user@ui ~]$ ssh-keygen -t rsa -b 2048 -f tmpfedcloud
     9}}}
     10
     11{{{
     12#!/bin/bash
     13[user@ui ~]$ cat > tmpfedcloud.login << EOFusers:
    814  - name: cloudadm
    915    sudo: ALL=(ALL) NOPASSWD:ALL
     
    1319      - `cat tmpfedcloud.pub`
    1420EOF
    15 export ENDPOINT=https://carach5.ics.muni.cz:11443
    16 export OS_TPL=http://occi.carach5.ics.muni.cz/occi/infrastructure/os_tpl#uuid_egi_ubuntu_server_14_04_lts_fedcloud_warg_131
    17 export RES_TPL=http://fedcloud.egi.eu/occi/compute/flavour/1.0#small
     21}}}
    1822
    19 VM_ID=$(occi --endpoint $ENDPOINT --auth x509 --user-cred $X509_USER_PROXY --voms --action create --resource compute --attribute occi.core.title="MyFirstVM1"        --mixin $OS_TPL --mixin $RES_TPL --context user_data="file://$PWD/tmpfedcloud.login")
     23{{{
     24#!/bin/bash
     25[user@ui ~]$ export ENDPOINT=https://carach5.ics.muni.cz:11443
     26[user@ui ~]$ export OS_TPL=http://occi.carach5.ics.muni.cz/occi/infrastructure/os_tpl#uuid_egi_ubuntu_server_14_04_lts_fedcloud_warg_131
     27[user@ui ~]$ export RES_TPL=http://fedcloud.egi.eu/occi/compute/flavour/1.0#small
     28}}}
     29
     30{{{
     31#!/bin/bash
     32[user@ui ~]$ VM_ID=$(occi --endpoint $ENDPOINT --auth x509 --user-cred $X509_USER_PROXY --voms --action create --resource compute --attribute occi.core.title="MyFirstVM1"        --mixin $OS_TPL --mixin $RES_TPL --context user_data="file://$PWD/tmpfedcloud.login")
    2033occi --endpoint $ENDPOINT --auth x509 --user-cred $X509_USER_PROXY --voms --action describe --resource ${VM_ID}
    21 ssh -i tmpfedcloud cloudadm@${IP}
    22 occi --endpoint $ENDPOINT --auth x509 --user-cred $X509_USER_PROXY --voms --action delete --resource ${VM_ID}
     34}}}
     35
     36{{{
     37#!/bin/bash
     38[user@ui ~]$ ssh -i tmpfedcloud cloudadm@${IP}
     39}}}
     40
     41{{{
     42#!/bin/bash
     43[user@ui ~]$ occi --endpoint $ENDPOINT --auth x509 --user-cred $X509_USER_PROXY --voms --action delete --resource ${VM_ID}
     44}}}