# Non-interactive editing of settings like 'onehost update 0'

**URL:** <https://forum.opennebula.io/t/non-interactive-editing-of-settings-like-onehost-update-0/1118>\
**Category:** Product Support\
**Created:** [August 24, 2015, 10:32am UTC](https://forum.opennebula.io/t/non-interactive-editing-of-settings-like-onehost-update-0/1118 "2015-08-24T10:32:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericf](https://avatars.discourse-cdn.com/v4/letter/e/f19dbf/32.png) [@ericf](https://forum.opennebula.io/u/ericf)\
**Post date:** [August 24, 2015, 10:32am UTC](https://forum.opennebula.io/t/non-interactive-editing-of-settings-like-onehost-update-0/1118/1 "2015-08-24T10:32:10Z")

</div>

In the sunstone configuration, I have to edit onezone/onedatastore settings, which can be done using an interactive editor with ‘onezone update 0’.

How can I edit these settings non-interactively, so that I can use bash/Ansible to set up my config?

---

<div class="post-metadata">

**Author:** ![ericf](https://avatars.discourse-cdn.com/v4/letter/e/f19dbf/32.png) [@ericf](https://forum.opennebula.io/u/ericf)\
**Post date:** [August 26, 2015, 3:03pm UTC](https://forum.opennebula.io/t/non-interactive-editing-of-settings-like-onehost-update-0/1118/2 "2015-08-26T15:03:54Z")

</div>

I found it:

```auto
onedatastore update <datastore_id> <template> -a

```

Here `<template>` is a file that only contains the values that must be changed.
