From 3df52cf2fb5cdb92b407195f55467e3b5ef26785 Mon Sep 17 00:00:00 2001 From: joelmccracken Date: Thu, 13 Apr 2017 20:50:08 +0000 Subject: --- doc/forum/Work_on_OS_X.mdwn | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/forum/Work_on_OS_X.mdwn (limited to 'doc') diff --git a/doc/forum/Work_on_OS_X.mdwn b/doc/forum/Work_on_OS_X.mdwn new file mode 100644 index 00000000..e3c5fd64 --- /dev/null +++ b/doc/forum/Work_on_OS_X.mdwn @@ -0,0 +1,5 @@ +I'm interested in using Propellor on OS X. I understand that it is not supported though. + +Is there anyone doing this? If it was developed, would support for OS X be merged upstream? + +Thanks! -- cgit v1.3-2-g0d8e From 7dbde4c109b09eb8eee198e71de1500846fc7a88 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 13 Apr 2017 17:42:52 -0400 Subject: response --- ...mment_1_6d7d5b89f1de9604718f7973e4b3eeb1._comment | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/forum/Work_on_OS_X/comment_1_6d7d5b89f1de9604718f7973e4b3eeb1._comment (limited to 'doc') diff --git a/doc/forum/Work_on_OS_X/comment_1_6d7d5b89f1de9604718f7973e4b3eeb1._comment b/doc/forum/Work_on_OS_X/comment_1_6d7d5b89f1de9604718f7973e4b3eeb1._comment new file mode 100644 index 00000000..4eac2063 --- /dev/null +++ b/doc/forum/Work_on_OS_X/comment_1_6d7d5b89f1de9604718f7973e4b3eeb1._comment @@ -0,0 +1,20 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2017-04-13T21:36:20Z" + content=""" +I got a patch some years back to make propellor compile on OSX. +I merged it. You might want to get in touch with its author, as +he may be doing something with propellor on OSX. + + +Anyway, I'd probably merge OSX patches, if they were not super +intrusive. And I don't see why it would be, as propellor already supports +FreeBSD. + +Since `Property` is parameterized by the operating systems it +supports, it should be easy to start by only porting the core parts +of propellor, and then port over individual Properties one by one as +needed. See the commits for the recent FreeBSD port for a nice walkthough +of the changes you'll want to make. +"""]] -- cgit v1.3-2-g0d8e From b7622d7e2391623a99a899c31b8edf960ade6dfc Mon Sep 17 00:00:00 2001 From: joelmccracken Date: Mon, 17 Apr 2017 17:47:30 +0000 Subject: Added a comment --- .../comment_2_00b20c240fc13bed6dc54e5b985b41e2._comment | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/forum/Work_on_OS_X/comment_2_00b20c240fc13bed6dc54e5b985b41e2._comment (limited to 'doc') diff --git a/doc/forum/Work_on_OS_X/comment_2_00b20c240fc13bed6dc54e5b985b41e2._comment b/doc/forum/Work_on_OS_X/comment_2_00b20c240fc13bed6dc54e5b985b41e2._comment new file mode 100644 index 00000000..aa33c85b --- /dev/null +++ b/doc/forum/Work_on_OS_X/comment_2_00b20c240fc13bed6dc54e5b985b41e2._comment @@ -0,0 +1,17 @@ +[[!comment format=mdwn + username="joelmccracken" + avatar="http://cdn.libravatar.org/avatar/45175015b9eb3dd3f6c740b3fe920fed" + subject="comment 2" + date="2017-04-17T17:47:30Z" + content=""" +Sounds good. I contacted the person you linked to, have not heard back yet. + + + +The first issue I ran into is that propellor wants to connect to \"root@\", and it doesn't look like this is configurable. +Would you accept a patch to make this configurable? + +Additionally, is this the best place to ask questions about what you would/would not accept? + +Thank you!!! +"""]] -- cgit v1.3-2-g0d8e From 162b0d77dd607316b79dad2aa7d0e2986927746b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 17 Apr 2017 20:12:12 -0400 Subject: response --- .../comment_3_294f4783522a8e4887793aac921ee546._comment | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/forum/Work_on_OS_X/comment_3_294f4783522a8e4887793aac921ee546._comment (limited to 'doc') diff --git a/doc/forum/Work_on_OS_X/comment_3_294f4783522a8e4887793aac921ee546._comment b/doc/forum/Work_on_OS_X/comment_3_294f4783522a8e4887793aac921ee546._comment new file mode 100644 index 00000000..ed654d3f --- /dev/null +++ b/doc/forum/Work_on_OS_X/comment_3_294f4783522a8e4887793aac921ee546._comment @@ -0,0 +1,14 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2017-04-18T00:08:13Z" + content=""" +Yes, this is the place. Or you can email me directly, but I prefer to keep +discussions public. + +`propellor --spin` needs a way to run commands as root on the remote host. +If ssh as root on OSX is not allowed, it would need a way to get to a user +who can get root, and it would be very annoying if a password needed to be +entered since each `propellor --spin` actually makes several ssh connections to +the remote host. Anything that works within these constraints would be ok. +"""]] -- cgit v1.3-2-g0d8e From 743d0a7b0fe0fae3dc3fc65307c33a2b2da82521 Mon Sep 17 00:00:00 2001 From: joelmccracken Date: Thu, 20 Apr 2017 02:23:06 +0000 Subject: Added a comment --- .../comment_4_74b579d4d590432b6bd236ccb929cc11._comment | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/forum/Work_on_OS_X/comment_4_74b579d4d590432b6bd236ccb929cc11._comment (limited to 'doc') diff --git a/doc/forum/Work_on_OS_X/comment_4_74b579d4d590432b6bd236ccb929cc11._comment b/doc/forum/Work_on_OS_X/comment_4_74b579d4d590432b6bd236ccb929cc11._comment new file mode 100644 index 00000000..d386c1b5 --- /dev/null +++ b/doc/forum/Work_on_OS_X/comment_4_74b579d4d590432b6bd236ccb929cc11._comment @@ -0,0 +1,16 @@ +[[!comment format=mdwn + username="joelmccracken" + avatar="http://cdn.libravatar.org/avatar/45175015b9eb3dd3f6c740b3fe920fed" + subject="comment 4" + date="2017-04-20T02:23:06Z" + content=""" +So, it turns out that yes, root is a thing on os x... but it is complicated. I'm going to put what I learned here because I think it will be useful, at least for telling folks how to use propellor on os x. + +1. Enable the root account. Steps are here: https://support.apple.com/en-us/HT204012 +2. password-authentication as root is disabled -- if you try to `ssh root@localhost`, it wont work. you need a key pair. +3. use su/sudo to install a public key (probably at `.ssh/id_rsa.pub`) to roots authorized_keys. adapted from: https://discussions.apple.com/thread/4078360?start=0&tstart=0 +4. copy the the pub file to authorized keys: `sudo cp /Users/joel/.ssh/id_rsa.pub /var/root/.ssh/authorized_keys` +5. you should now be able to `ssh root@localhost` without a password. + +I'm not super sure that this is even the best way forward, but lets get this working first, then we'll see. +"""]] -- cgit v1.3-2-g0d8e From da9e56615f09583d94edf78d72455ec114be866d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 20 Apr 2017 00:58:21 -0400 Subject: add news item for propellor 4.0.3 --- doc/news/version_4.0.2.mdwn | 12 ------------ doc/news/version_4.0.3.mdwn | 6 ++++++ 2 files changed, 6 insertions(+), 12 deletions(-) delete mode 100644 doc/news/version_4.0.2.mdwn create mode 100644 doc/news/version_4.0.3.mdwn (limited to 'doc') diff --git a/doc/news/version_4.0.2.mdwn b/doc/news/version_4.0.2.mdwn deleted file mode 100644 index b955c579..00000000 --- a/doc/news/version_4.0.2.mdwn +++ /dev/null @@ -1,12 +0,0 @@ -propellor 4.0.2 released with [[!toggle text="these changes"]] -[[!toggleable text=""" - * Apt.mirror can be used to set the preferred apt mirror of a host, - overriding the default CDN. This info is used by - Apt.stdSourcesList and Sbuild.builtFor. - Thanks, Sean Whitton. - * Property.Partition: Update kpartx output parser, as its output format - changed around version 0.6. Both output formats are supported now. - * Fix bug when using setContainerProps with a chroot that prevented - properties added to a chroot that way from being seen when propellor - was running inside the chroot. This affected disk image creation, and - possibly other things that use chroots."""]] \ No newline at end of file diff --git a/doc/news/version_4.0.3.mdwn b/doc/news/version_4.0.3.mdwn new file mode 100644 index 00000000..eb467287 --- /dev/null +++ b/doc/news/version_4.0.3.mdwn @@ -0,0 +1,6 @@ +propellor 4.0.3 released with [[!toggle text="these changes"]] +[[!toggleable text=""" + * Added Fstab.listed, Fstab.swap, and Mount.swapOn properties. + Thanks, Daniel Brooks. + * Added Propellor.Property.Bootstrap, which can be used to make + disk images contain their own installation of propellor."""]] \ No newline at end of file -- cgit v1.3-2-g0d8e From 89d216c838f989bcc8783e4b3a650a2157286389 Mon Sep 17 00:00:00 2001 From: "bardur.arantsson" Date: Fri, 12 May 2017 06:50:49 +0000 Subject: Added a comment --- ...ent_3_cd4b9b9e160469e9f0b105f6c40a4ef8._comment | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 doc/forum/Using_propellor_for_continers_only/comment_3_cd4b9b9e160469e9f0b105f6c40a4ef8._comment (limited to 'doc') diff --git a/doc/forum/Using_propellor_for_continers_only/comment_3_cd4b9b9e160469e9f0b105f6c40a4ef8._comment b/doc/forum/Using_propellor_for_continers_only/comment_3_cd4b9b9e160469e9f0b105f6c40a4ef8._comment new file mode 100644 index 00000000..fceeedcf --- /dev/null +++ b/doc/forum/Using_propellor_for_continers_only/comment_3_cd4b9b9e160469e9f0b105f6c40a4ef8._comment @@ -0,0 +1,54 @@ +[[!comment format=mdwn + username="bardur.arantsson" + avatar="http://cdn.libravatar.org/avatar/a0be0039b44d33262b7ae650a0803ad5" + subject="comment 3" + date="2017-05-12T06:50:49Z" + content=""" +Ok, so I've tried to use this to build a Chroot (a reasonable starting point for building containers), using the following program: + + module Main + ( main + ) where + + import Propellor + import Propellor.Engine + import Propellor.Property.DiskImage + import qualified Propellor.Property.Apt as Apt + import qualified Propellor.Property.User as User + import Propellor.Property.Chroot + + main :: IO () + main = mainProperties $ host \"whatever\" $ props + & provisioned (mychroot \"out\") + where + mychroot d = debootstrapped mempty d $ props + & osDebian Unstable X86_64 + & Apt.installed [\"linux-image-amd64\"] + & User.hasPassword (User \"root\") + & User.accountFor (User \"demo\") + & User.hasPassword (User \"demo\") + +It seems that \"debootstrap\" finishes: + + I: Configuring apt-transport-https... + I: Configuring tasksel... + I: Configuring tasksel-data... + I: Configuring libc-bin... + I: Configuring systemd... + I: Configuring ca-certificates... + I: Base system installed successfully. + +But fails immediately afterwards: + + ldd: /usr/local/propellor/propellor: No such file or directory + ** warning: user error (ldd [\"/usr/local/propellor/propellor\"] exited 1) + whatever chroot out exists ... failed + whatever overall ... failed + +(I should probably have used a different hostname than \"whatever\", but... whatever :).) + +So it seems that the chroot support still expects propellor to be installed on the host system? + +I should mention that I've done an extremely small patch to Propellor locally, just to the ChrootBootstrapper instance for ArchLinux to allow it to call debootstrap on Arch Linux -- it seems to exist as a package these days, not sure if it did when that Propellor code was written. Anyway... + +"""]] -- cgit v1.3-2-g0d8e From 51b74d0397d5f6498f167c7820fb4966be2be7c5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 13 May 2017 13:53:18 -0400 Subject: response --- ...ment_4_9dc985b26c29b9ce21e6c75ec03f6262._comment | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 doc/forum/Using_propellor_for_continers_only/comment_4_9dc985b26c29b9ce21e6c75ec03f6262._comment (limited to 'doc') diff --git a/doc/forum/Using_propellor_for_continers_only/comment_4_9dc985b26c29b9ce21e6c75ec03f6262._comment b/doc/forum/Using_propellor_for_continers_only/comment_4_9dc985b26c29b9ce21e6c75ec03f6262._comment new file mode 100644 index 00000000..72d7ca83 --- /dev/null +++ b/doc/forum/Using_propellor_for_continers_only/comment_4_9dc985b26c29b9ce21e6c75ec03f6262._comment @@ -0,0 +1,21 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 4""" + date="2017-05-13T17:42:41Z" + content=""" +The way propellor handles running in a chroot or container is it exports +its binary and support files into the container. This way the +haskell code can run in a container, rather than being limited to +only running shell commands in the container, and without needing ghc in +the container. + +It does use the hardcoded `localdir` for that. +It would certianly be possible to make it use propellor in a different +location, perhaps using `getExecutablePath`. + +Since the git-annex outside the container passes command-line options to +the one running inside the container to tell it what to do, using +`mainProperties` would also not work since that does not look at +command-line options. It would need to use `defaultMain` or +`processCmdLine` and dispatch itself, or something.. +"""]] -- cgit v1.3-2-g0d8e