From 8d6142cef34e986471398962c00cd7bbe7c4035a Mon Sep 17 00:00:00 2001 From: CrimsonTome Date: Tue, 22 Nov 2022 23:04:56 +0000 Subject: [PATCH] chore: rm pyinfra script --- post-install.py | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 post-install.py diff --git a/post-install.py b/post-install.py deleted file mode 100644 index e567ab7..0000000 --- a/post-install.py +++ /dev/null @@ -1,44 +0,0 @@ -from pyinfra import host -from pyinfra.facts.files import File -from pyinfra.facts.server import LinuxName -from pyinfra.operations import apt, server, dnf, files - - -os = host.get_fact(LinuxName) -print (os) - - -# why does this not work???? -# username = host.get_fact(User) -username = str(server.shell("whoami")) -print(username) - -hostname = host.get_fact(server.Hostname) -print(hostname) - -# why does this not work???? -# homeDir = host.get_fact(server.Home) - -homeDir = str(server.shell("echo $HOME")) -print(homeDir) - -# files.directory( -# name="Ensure /home/username/git exists", -# path=str(homeDir)+"/git", -# user=username, -# group=username, -# ) - -# files.directory( -# name="Ensure /home/username/.config exists", -# path=str(homeDir)+"/.config", -# user=username, -# group=username, -# ) - -# files.directory( -# name="Ensure /home/username/.ssh exists", -# path=str(homeDir)+"/.ssh", -# user=username, -# group=username, -# )