Project

General

Profile

Segnalazione #284

Commento di esempio per dhcp-reservations

Added by Christopher R. Gabriel almost 7 years ago. Updated almost 7 years ago.

Status:
Chiuso
Priority:
Bassa
Start date:
06/07/2017
Due date:
% Done:

0%

Estimated time:

Description

Il file /etc/fuss-server/dhcp-reservations, creato da fuss-server create e utilizzato come include dal server dhcp, sarebbe comodo se include, come commento, un esempio di configurazione (come presente anche sul wiki come documentazione) per poter avere un riferimento anche offline.

History

#1

Updated by Christopher R. Gabriel almost 7 years ago

  • Assignee set to Elena Grandi

Ho visto che al momento viene usato il modulo "copy" per content: "" per creare il file vuoto, ma non e' che questo poi, ad esecuzione successive di fuss-server create, ricancella il file? Perche' essendo pensato per contenere personalizzazioni relative al contesto, se le cancella perde un po' il senso.

#2

Updated by Elena Grandi almost 7 years ago

  • Assignee changed from Elena Grandi to Christopher R. Gabriel

la copy ha l'opzione force: no: "If no, the file will only be transferred if the destination does not exist." (da https://work.fuss.bz.it/issues/284 ), quindi no, se il file esiste non viene ricreato.

si può ovviamente correggere da content: "" ad un file con l'esempio di configurazione (che contenuti deve avere?)

#3

Updated by Christopher R. Gabriel almost 7 years ago

  • Assignee changed from Christopher R. Gabriel to Elena Grandi

Il contenuto dovrebbe essere qualcosa tipo:

##
## Insert here address reservations for known hosts.
##
## Example:
#
# host haagen {
#   hardware ethernet 08:00:2b:4c:59:23;
#   fixed-address 192.168.1.222;
#}
#4

Updated by Elena Grandi almost 7 years ago

Il link ovviamente doveva essere http://docs.ansible.com/ansible/copy_module.html

#5

Updated by Elena Grandi almost 7 years ago

  • Status changed from Nuovo to Commenti
  • Assignee changed from Elena Grandi to Christopher R. Gabriel

Pushata la modifica sul repository di fuss-server (su master)

Ho aspettato a fare version bump del pacchetto: credo che la si possa fare assieme alle eventuali modifiche per #285, va bene?

#6

Updated by Christopher R. Gabriel almost 7 years ago

  • Assignee changed from Christopher R. Gabriel to Elena Grandi

E' ok per - va bene fare nuovo pacchetto a seguito di #285. Lo lascio assegnato a te per farlo quando sara' il momento e quindi chiudere il ticket.

#7

Updated by Elena Grandi almost 7 years ago

  • Assignee changed from Elena Grandi to Christopher R. Gabriel

Incluso in fuss-server 8.0.14-1, appena pubblicata sul repo

#8

Updated by Christopher R. Gabriel almost 7 years ago

  • Status changed from Commenti to Chiuso

Ok, verificato con ultimo pacchetto fuss-server.

Also available in: Atom PDF