Created
June 6, 2019 18:26
-
-
Save dkt26111/2d70edd83b914e1c4c5472e444709313 to your computer and use it in GitHub Desktop.
Senlin profile that installs and runs node_exporter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: os.nova.server | |
version: 1.0 | |
properties: | |
name: cirros_server | |
flavor: 1 | |
image: "cirros-0.4.0-x86_64-disk" | |
networks: | |
- network: public | |
user_data: | | |
#!/bin/sh | |
echo 'hello, world' > /tmp/test_file | |
cd /home/cirros | |
NODEEXPORTER_URL=http://10.0.20.10:8080/v1/AUTH_d044c3a9a69144ceaa16a0eee0b7b955/test/node_exporter | |
wget ${NODEEXPORTER_URL} | |
chmod a+x node_exporter | |
./node_exporter & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment