munki 3 Munkiimport --configure path to munki repo

2,786 views
Skip to first unread message

hunte...@gmail.com

unread,
Mar 30, 2017, 9:16:13 AM3/30/17
to munki-discuss
Hey
Im having some problems with the new Munki 3 "munkiimport --configure" cmd.


Munki 3 
When you write "munkiimport --configure" in this version you get this compared to version 2. 
I was expecting to get path to munki repo but i dont. Is this deprecated and not in use anymore in munki 3?




munkiimport --configure
Repo URL (example: afp://munki.example.com/repo): 
pkginfo extension (Example: .plist): 
pkginfo editor (examples: /usr/bin/vi or TextMate.app; leave empty to not open an editor after import):
Default catalog to use (example: testing): 
Repo access plugin (defaults to FileRepo): 

Munki 2
Path to munki repo (example: /Volumes/repo): /Library/Server/Web/Data/Sites/Default/munki_repo
Repo fileshare URL (example: afp://munki.example.com/repo): 
pkginfo extension (Example: .plist): 
pkginfo editor (examples: /usr/bin/vi or TextMate.app; leave empty to not open an editor after import): 
Default catalog to use (example: testing): 



When i then use this for Munki 3 and afterwards try to import a software i get the error message below.
 munkiimport --configure
Repo URL (example: afp://munki.example.com/repo): 
pkginfo extension (Example: .plist): 
pkginfo editor (examples: /usr/bin/vi or TextMate.app; leave empty to not open an editor after import): TextEdit.app
Default catalog to use (example: testing): testing
Repo access plugin (defaults to FileRepo):

munkiimport Downloads/Skype_7.49.274.dmg 
Could not get a list of existing items from the repo: [Errno 2] No such file or directory: u'/Volumes/catalogs/all'

it tries to import straight into the bottom of the harddrive/Volum it seems.

How can you solve this :)?
Is it just a munkiimport --configure bug or did i forget a step that is needed in Munki 3?

Gregory Neagle

unread,
Mar 30, 2017, 9:18:04 AM3/30/17
to munki-...@googlegroups.com
Please read this: https://github.com/munki/munki/wiki/Repo-Plugins#command-line-tools

...and then post any follow up questions here.

-Greg

--
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discus...@googlegroups.com.
To post to this group, send email to munki-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/25f7c54f-a0ee-4b5f-888d-74ee9f31ca4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hunte...@gmail.com

unread,
Apr 12, 2017, 5:59:39 AM4/12/17
to munki-discuss
I tried using this but i then get the error below did i use the wrong command or where did i do the wrong command is probably a better question.

Repo URL (example: afp://munki.example.com/repo): file:///Library/Server/Web/Data/Sites/Default/munki_repo
pkginfo extension (Example: .plist): 
pkginfo editor (examples: /usr/bin/vi or TextMate.app; leave empty to not open an editor after import): TextEdit.app
Default catalog to use (example: testing): testing
Repo access plugin (defaults to FileRepo): 


server:~ hunted$ munkiimport Downloads/Skype_7.50.461.dmg 
Could not get a list of existing items from the repo: [Errno 2] No such file or directory: u'/Library/Server/Web/Data/Sites/Default/munki_repo/catalogs/all'
           Item name: Skype

Gregory Neagle

unread,
Apr 13, 2017, 12:12:00 PM4/13/17
to munki-...@googlegroups.com
So does /Library/Server/Web/Data/Sites/Default/munki_repo/catalogs/all exist?

Have you used the Munki 2 admin tools successfully against this repo?

TextEdit.app is a dangerous choice as a pkginfo editor unless you are very careful to keep it in plain text mode...

-Greg

-- 
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discus...@googlegroups.com.
To post to this group, send email to munki-...@googlegroups.com.

hunte...@gmail.com

unread,
May 2, 2017, 6:57:27 AM5/2/17
to munki-discuss
Hey sorry for the very delayed answer.

I tried the latest munki v3 5 beta but still having the same problems i tried .

munkiimport --configure
Repo URL (example: afp://munki.example.com/repo): file:////Library/Server/Web/Data/Sites/Default/munki_repo 
pkginfo extension (Example: .plist): 
pkginfo editor (examples: /usr/bin/vi or TextMate.app; leave empty to not open an editor after import):
Default catalog to use (example: testing): 
Repo access plugin (defaults to FileRepo): 

But when i upgraded from Munki v2 to munki v3 beta 5 it worked.

The issue for me seems to be that i cant configure "Path to munki repo (example: /Volumes/repo):" inn munki v3 beta 5.

After what i understand "You will no longer be prompted for a repo path. The repo_path preference may be deprecated in the future -- I'm not sure it's needed any longer."
This will be removed so how will this be solved in V3 of Munki? Is it somewhere else you will set this setting or will it go somewhere by default and be hardcoded?

It's probably me not reading and understanding the documention correct so thats why im asking :)

https://github.com/munki/munki/wiki/Repo-Plugins#command-line-tools

Thank you so much and have a nice day.

Gregory Neagle

unread,
May 2, 2017, 9:12:29 AM5/2/17
to munki-...@googlegroups.com
On May 2, 2017, at 3:57 AM, hunte...@gmail.com wrote:

But when i upgraded from Munki v2 to munki v3 beta 5 it worked.

The issue for me seems to be that i cant configure "Path to munki repo (example: /Volumes/repo):" inn munki v3 beta 5.

After what i understand "You will no longer be prompted for a repo path. The repo_path preference may be deprecated in the future -- I'm not sure it's needed any longer."
This will be removed so how will this be solved in V3 of Munki? Is it somewhere else you will set this setting or will it go somewhere by default and be hardcoded?

With the Munki 3 command-line tools, you will not be prompted for a repo path because it will no longer be needed.

If you have a repo on your local disk, you'd use a Repo URL of "file:///path/to/the/local/repo".  If you have a repo available via a fileshare, you will provide a URL for the fileshare: "afp://my_munki_server/repo" or "smb://my_munki_server/repo" or "nfs://my_munki_server/repo". The tools will mount the fileshare and use the mounted path as the repo path.

-Greg

hunte...@gmail.com

unread,
May 9, 2017, 4:14:06 AM5/9/17
to munki-discuss
I cant get this to work "If you have a repo on your local disk, you'd use a Repo URL of "file:///path/to/the/local/repo"."
I tried with:
file:///Library/Server/Web/Data/Sites/Default/munki_repo  
file:///Library/Server/Web/Data/Sites/Default/munki_repo/catalogs
file:///Library/Server/Web/Data/Sites/Default/munki_repo/catalogs/all

When i created the folders for the munki folders i did this.

  1. mkdir /Library/Server/Web/Data/Sites/Default/munki_repo
    mkdir /Library/Server/Web/Data/Sites/Default/munki_repo/catalogs
    mkdir "/Library/Server/Web/Data/Sites/Default/munki_repo/Client_Resources"
    mkdir /Library/Server/Web/Data/Sites/Default/munki_repo/pkgs
    mkdir /Library/Server/Web/Data/Sites/Default/munki_repo/pkgsinfo
    mkdir /Library/Server/Web/Data/Sites/Default/munki_repo/manifests
    mkdir /Library/Server/Web/Data/Sites/Default/munki_repo/icons
  2.  

    chmod -R a+rX /Library/Server/Web/Data/Sites/Default/munki_repo

Gregory Neagle

unread,
May 9, 2017, 9:07:53 AM5/9/17
to munki-discuss
If your repo is available at a local path of /Library/Server/Web/Data/Sites/Default/munki_repo, then a Repo URL of "file:///Library/Server/Web/Data/Sites/Default/munki_repo" would be correct.

BTW "Client_Resources" is not the correct name for the client_resources directory...

-Greg

--
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discus...@googlegroups.com.
To post to this group, send email to munki-...@googlegroups.com.

hunte...@gmail.com

unread,
May 12, 2017, 3:54:59 AM5/12/17
to munki-discuss
Yeah after a few more tries i got it work with a clean munki version 3 beta 6 install  (not upgrading from munki v2)

This works: Repo URL (example: afp://munki.example.com/repo): file:///Volumes/macOS/Library/Server/Web/Data/Sites/Default/munki_repo/
This didnt work: Repo URL (example: afp://munki.example.com/repo): file:///Library/Server/Web/Data/Sites/Default/munki_repo/

macOS is of course the name of the partition im using.

I was still missing the Volumes/macOS/Library/Server/Web/Data/Sites/Default/munki_repo/catalogs/all     File but i just copied file from a munki v2 install and then it worked with the commando utility.

not sure why i was missing the catalogs/all file but i did so thats life.

But at least i got a clean install munki version 3 beta x install working instead of having to upgrade from munki version 2.

Thanks i see that the guide i wrote for my self had the wrong folder name as you said so fixed that :)



The catalogs/all file is this suppost to be generated by itself when you run munki --configure since i was missing that i whondered why. :)

Thank you so much for the help :)

Nick McSpadden

unread,
May 12, 2017, 9:40:30 AM5/12/17
to munki-...@googlegroups.com
The catalogs files are generated when you run `makecatalogs`.

To unsubscribe from this group and stop receiving emails from it, send an email to munki-discuss+unsubscribe@googlegroups.com.

To post to this group, send email to munki-...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
--
Nick McSpadden
nmcsp...@gmail.com
Reply all
Reply to author
Forward
0 new messages