comparison system.py @ 60:a949704defd0

new pyinfra
author drewp@bigasterisk.com
date Sun, 01 May 2022 23:31:20 -0700
parents 16098abf8f0f
children 659e4b228909
comparison
equal deleted inserted replaced
59:fa7a71b8a97f 60:a949704defd0
13 # 13 #
14 # timezone 14 # timezone
15 # 15 #
16 16
17 files.link(path='/etc/localtime', target=f'/usr/share/zoneinfo/{TZ}') 17 files.link(path='/etc/localtime', target=f'/usr/share/zoneinfo/{TZ}')
18 files.replace(path='/etc/timezone', match='.*', replace=TZ) 18 files.replace(path='/etc/timezone', text='.*', replace=TZ)
19 apt.packages(update=True, 19 apt.packages(update=True,
20 cache_time=86400, 20 cache_time=86400,
21 packages=['tzdata'], 21 packages=['tzdata'],
22 force=True, 22 force=True,
23 env={ 23 _env={
24 'TZ': TZ, 24 'TZ': TZ,
25 'LANG': 'en_US.UTF-8', 25 'LANG': 'en_US.UTF-8',
26 'DEBIAN_FRONTEND': 'noninteractive' 26 'DEBIAN_FRONTEND': 'noninteractive'
27 }) 27 })
28 28