Install confab:
pip install confab
Create a settings.py file:
cat > settings.py << "EOF"
environmentdefs = {
'local': ['localhost']
}
roledefs = {
'example': ['localhost']
}
EOF
Create a template:
mkdir -p templates/example/tmp/
echo '{{ value }}' > templates/example/tmp/hello.txt
Create data to populate the template:
mkdir -p data
echo 'value = "world"' > data/default.py
Review the difference between the template value and the value on the target host:
confab diff
Push changes to the target host:
confab push
Review the change:
ssh localhost cat /tmp/hello.txt