How to change Openstack working project - openstack

I have multiple Openstack projects available but every command I execute only is applied to my personal project.
I would like to know how to change the "working project". I do not seem to find it in the docs.

I don't know what interface is used by you, I'll provide an solutions based CLI.
'openstackrc_youraccount' file (it's ocata version rc file, but important variable is OS_PROJECT_NAME. OS_TENANT_NAME is old version name.)
export OS_USERNAME=YOUR_USERNAME
export OS_PASSWORD=YOUR_PASS
export OS_PROJECT_NAME=YOU_WANT_TO_WORK_PROJECT_NAME
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://YOUR_CONTROLLER_HOST_OR_IP:35357/v3
export OS_IDENTITY_API_VERSION=3
After setting up the project name where you want to work into OS_PROJET_NAME, and then applying the current session.
$ source openstackrc_youraccount
Now you can work at the project you selected.
I hope it helpful to you.

Related

2sxc - copy app to new folder and name

I created my "base" app which I plan to use for a different little-changed app with different views and additional fields.
What is the right and easiest way to make a copy of this base app to different name and folder?
Also can than that apps work side by side on one portal?
=== edit 1 ===
I already try to rename app like in this post: 2sxc : Rename App Folder
Then create a new export of entire app, and restore portal to version before rename and try to import this "new" renamed app. But get the error...
Now I am looking to exported App.xml and there are "EntityGUID" and "AttributeSet StaticName" and "App Guid" with GUID values and I think that this is a problem at importing this "new" app...
Is it possible that I make a tool to parse this XML find all GUID-s then generated the same number of new GUID-s and replace old ones with new ones and repack ZIP and then try to import this? Can this be a solution or this is totally wrong?
I make an app : https://github.com/pircjernej/NajdiNET.2sxc.Rename
If you build it or download exe from the release you can change Exported app ZIP file to new name and folder... Then just install this changed zip and do what you want...
Now work for my sample 2sxc app but did not test how to work with 2sxc sample apps... I will do this in next days...
If someone wants to test it help or contribute, you are welcome.
==== edit 1 =====
I make quick test with 2sxc blog app and I think that work OK

Export everything from Alfresco

I need to export everything (sites, dashboard, users, groups ecc...) is under my Alfresco ed import all to another Alfresco installation.
I discovered this usefull tool https://github.com/atolcd/alfresco-share-import-export but seems to me that it is good to create an .acp of a site for example but it's not enought for others stuff expecially users.
Please, what's an easy way to export everything from Alfresco ? And then how to import ? Thank you.
I used this Pynthon scripts github.com/wabson/share-import-export but no way an error on the python script execution : C:\Users\xxx\Desktop\Nuova cartella>python export-users.py file.json --username=xxx --password=xxx --url=localhost:8080/share/page/site/xxx/dashboard File "export-users.py", line 5 ^ SyntaxError: invalid syntax
I have Alfresco 5.1 and Pynthon 2.7.12
screenshot
Your url param is incorrect. Use the below one.
python export-users.py file.json --username=admin --password=admin --url=http://localhost:8080/share
This should work for you.
The Share URL should be, http://<IP or systemname>:<portnumber/share, but you've mentioned the one site dashboard url. Please change that.
You can also use alfresco OOTB replication service and replicate all the data from one alfresco instance to second one.

How to export assets using the export Usergrids export tool

When I run the export command here below it creates a new export folder containing a set of JSON files that corresponds to the different apps and organisations I have.
$ java -jar usergrid-tools.jar export
Unluckly the Assets (files) I've stored are not exported, how do I export them?
Exporting assets is not supported at this time. I have opened a ticket in our JIRA and you can track it here: https://issues.apache.org/jira/browse/USERGRID-997

How to import/export the tracking setting of a policy

I've noted from the MSDN page that policy isn't exportable to a bindings file.
Is there another way to import/export the tracking setting?
Try looking at the following MSDN page which describes the method by first exporting only the policy using BTSTask into an MSI and afterwards using BTSTask to import them again.
BTSTask does not provide a specific command for importing policies;
however you can use the ExportApp command of BTSTask to selectively
export only the policies in an application that you want, including no
other application artifacts. Then you can use the ImportApp command to
import the .msi file into an application in a different BizTalk group.
This is the approach described in this topic. When you do this, the
policy is automatically imported and published in the BizTalk group
and added to the specified application.
Hope this helps!

Path variables not working on 0.6.5 e.g. METEOR_SETTINGS

i cannot get it working after i updated to 0.6.5.
I created a new meteor project.
I have a start.sh script that looks like this.
export METEOR_SETTINGS=$(cat ./settings.json)
meteor
settings.json:
{
"public":{
"bla":"blup"
}
}
Meteor.settings on the client is undefined. It works if i add the settings json file via "--settings", but unfortunately this is not what i need.
The PORT environment variable or NODE_ENV also does not work for me.
Adding some random stuff like "export MY_ENV_VAR=foo" however works.
Am i missing s.th.? It all worked well before. I would really appreciate your help.
Thx!
(also created an issue: https://github.com/meteor/meteor/issues/1381)
If you are trying to test your meteor app locally (dev mode) or you want to deploy your app to the Meteor hosting, then just pass the file path as settings param:
meteor --settings settings.json
In case of running from bundle on your own server, then you need the environment variable.
Docs.

Resources