From 499adc167f2deb7d283d12fc45a20459fb04d1bc Mon Sep 17 00:00:00 2001 From: Nathan Tenney Date: Wed, 2 Oct 2024 13:28:24 -0700 Subject: [PATCH 1/2] Added an inventory file with more variables set for the host. --- .../recipe-inventory.additional_options.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/vagrant-vms/recipe-inventory.additional_options.yml diff --git a/examples/vagrant-vms/recipe-inventory.additional_options.yml b/examples/vagrant-vms/recipe-inventory.additional_options.yml new file mode 100644 index 0000000..dc57a9b --- /dev/null +++ b/examples/vagrant-vms/recipe-inventory.additional_options.yml @@ -0,0 +1,14 @@ +ansible_test: + hosts: + collector1: + ansible_host: collector1 # may use IP or hostname. Use localhost for local installation + ansible_connection: ssh # If using local installation, use local + # Explicitly set the python interpreter. Unless specified, this will also be the interpreter + # used for the volttron virtual environment. + ansible_python_interpreter: "python3.10" + http_proxy: "http://localhost:1234" # Set the http and https proxy environment variables if the host does not route to the internet + https_proxy: "http://localhost:1234" + volttron_home: "~/.volttron_test" # The location of the volttron home directory on the managed node + ## host_configs_dir is the location on the managed node where the platform's agent configuration files are placed by ansible + host_configs_dir: "~/.volttron_configs" + verbose_debug_tasks: true # Set to true to enable verbose debugging of ansible tasks From 25cc2b921735cb911515bae8c5c7cf06f227c625 Mon Sep 17 00:00:00 2001 From: Nathan Tenney Date: Wed, 2 Oct 2024 13:39:31 -0700 Subject: [PATCH 2/2] Added reference to examples directory for inventory file examples --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e6201e..e25d214 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ ansible-galaxy collection install git+https://github.com/eclipse-volttron/volttr The collection provides a number of playbooks and roles that can be used to install VOLTTRON, configure it, and manage its operation. The documentation provided below will go into more detail on the seteps of using these playbooks. The general process for using this collection is as follows: - Install the collection -- Create an inventory file that describes the hosts you want to manage +- Create an inventory file that describes the hosts you want to manage (examples in the + `examples/vagrant-vms` directory) - Create the configuration structure for each host that describes the platform and agents to be installed, and contains the configuration for those agents. - Run the playbooks in order - host_config