Note for public role
Issues and supported versions/releases for software are not displayed : Only a number is displayed.
Example : for Firefox software, Tosca display number of supported versions, and number of issues on this software, instead of the list of issues and versions.
Note for admin role
This role can't delete accounts and clients. Instead of, an account or a client has to be set inactive. This allow Tosca to keep all user/client comment, historic, issues, actions, etc.. You can still delete an account or a client, but you have to make this throw the rails console, on the server where Tosca is installed.
Note for manager role
A manager user can only works on contracts (s)he is affected to, by the contract creator or by an admin. This allows all manager to work on their contracts. without being disturbe by other managers contracts.
Note for manager and expert role
There is a restricted attribute, which all the user to have access to all contracts/issues, if it's set.
Important
We discourage you to give admin rights to more than one person. This role allow the user to make deletion, which can be dangerous. For example, an admin user can delete a software. This deletion will delete all packets, binaries, files, changelogs, related to this software.
At the moment, the Tosca project doesn't focus on deletion actions.
rake tmp:clear rm -f public/javascript/all*.js public/stylesheets/all*.css
Follows the minimal installation.Then you'll need to install all others dependencies
sudo rake gems:installAnd that's it, you can test your installation with a call to
rake testIf you didn't export before, export the rails test environnement
export RAILS_ENV=testLaunch Tosca with
./script/server
sudo apt-get install build-essentialThen you can install the gem :
sudo gem install passenger
sudo passenger-install-apache2-moduleOpen your /etc/hosts file and add this line to add new name for your computer
127.0.0.1 tosca.dev tosca.test tosca.prod
Create the file /etc/apache2/conf.d/mod_passenger.
You may have to adapt the path to passenger.
Copy this in /etc/apache2/conf.d/mod_passenger :LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3 PassengerRuby /usr/bin/rubyCreate 3 file in /etc/apache2/sites-available
<VirtualHost *:80> ServerName tosca.dev DocumentRoot /path/to/tosca RailsEnv "development" </VirtualHost>Copy this in tosca-test.conf :
<VirtualHost *:80> ServerName tosca.test DocumentRoot /path/to/tosca RailsEnv "test" </VirtualHost>Copy this in tosca-prod.conf :
<VirtualHost *:80> ServerName tosca.prod DocumentRoot /path/to/tosca </VirtualHost>Then enable these sites in apache :
sudo a2ensite tosca-dev.conf
sudo a2ensite tosca-test.conf
sudo a2ensite tosca-prod.conf
sudo /etc/init.d/apache2 reloadNow you have 3 urls to check :
Be aware that the user running your application will be the owner of the environment.rb file. See http://www.modrails.com/documentation/Users%20guide.html#user_switching for details.
sudo rake gems:installbecomes
sudo /opt/ruby-enterprise/bin/rake gems:install
You can run this script with two methods:
When you install Tosca, install script run automatically configuration scriptsudo bash script/deploy/installYou can directly reconfigure your Tosca instance with this command
sudo bash script/deploy/configure
Note: Type "sudo bash script/deploy/configure --help" for more informations
Which database backend does tosca have to use ?For this question:
Do you want Tosca to use a remote MySQL database [y/N] ?
It's recommanded to answer no if you don't know what it means
Do you want to configure automatically apache2 ? [Y/n]If you're a sysadmin, it's advised to skip this part. The script can change some of your configuration files.
If you don't install passenger, you can launch Webrick HTTP server with:
script/server -e development
script/server -e test
script/server -e production
NOTICE: Log file set. output: /tmp/tosca-configure_201007161454.output error: /tmp/tosca-configure_201007161454.error - Load tosca settings present on the system ... OK Which database backend does tosca have to use ? 1- sqlite3 (testing/development) 2- MySQL (production) 3- PostgreSQL (production) 1 NOTICE: The sqlite database is located in /var/www/tosca/db/tosca-*.db* - Update gem repository ... OK - Install RubyOnRails ... OK - Unpack and install Tosca gems - Freezing Rails ... OK - Install Tosca database ... OK Do you want to configure automatically apache2 ? [Y/n]Y Write the URI base to access Tosca. Example: /tosca -> http://127.0.0.1/tosca / - Install Apache configuration ... Give a filename for apache vhost. ex: tosca-prod tosca-test OK
You also need to have created before the contract(s) concerning those accounts




git clone tosca-project.net:/var/git/tosca.git* without an access :
git clone http://git.tosca-project.net/tosca.git tosca
Feel free to update or add yours.
Go check our Git Userguide.
You can find it here for the code and here for the data model.
You can install rcov (well a fork of rcov)
sudo gem install spicycode-rcov --source=http://gems.github.com/Then run
rake test:units:rcov rake test:functionals:rcov
You will then have a test/coverage/ directory with all the result
Q. Why download of attachments is protected
A. Because no one wants to see a customer configuration file in the hands of a script kiddie
Q. How to make a simple benchmark
A. You can install apache & use the ab program like this :
/usr/sbin/ab -C '_session_id=???'-c 100 -n 1000 http://localhost:3000/:controller/:action/:id
Q. I am noob, where can I start ?
A. Would you please read fully the Noob's Guide.
Q. How to debug Tosca ?
A. You can use the ruby-debug gem. It provides a complete debugging tool, rdebug, fully integrated with Rails stack. See here for a tutorial
./script/console
>> u = User.find_by_login('admin')>> u.pwd = 'MyNewPassword'
>> u.pwd_confirmation = 'MyNewPassword'
>> u.save
It should display "true" if all went fine.
git clone tosca-project.net:/var/git/extensions.git
You can view it online
Currently, there are three officials extensions :
git submodule init
git submodule update
rm -Rf vendor/extensions/jabber_notifier
The Tosca main features are:
Here's cool tutorial for branching a complex work and merging it afterwards.
We have 2 main branches
git checkout master
And the production branch, were stable code is centralised :
git checkout -b production origin/production
A simple git checkout production afterwards is sufficient.
$ git config --global user.name "Bob User"
$ git config --global user.email "bobg@my.site.com"
Clone http
$ git clone http://git.tosca-project.net/tosca.git tosca
Clone git
$ git clone '''$login'''@tosca-project.net:/var/git/tosca.git tosca
Small patch, fast way :
$ git diff
Big patch, longer way, with a local branch :
Create a local branch
$ git checkout -b workingbranch master
Make your patch
$ edit some_files
$ git add | git mv | git rm | vim | emacs
Commit
$ git status
$ git commit -a -m "this patch does this & this because of this"
Time to time, you can keep up your local branch with the repository :
git-checkout master # sur la branche master
git-pull # merge local branch with master, brute force
git-rebase # merge local branch with master, softer : it's interactive and does not commit the result
Then you can delete them :
$ rm -Rf vendors/extensions
$ git checkout vendors/extensions
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = tosca-project.net:/var/git/tosca.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "production"]
remote = origin
merge = refs/heads/production
They are located at : http://redmine.tosca-project.net/projects/list_files/tosca
sudo apt-get install librmagick-ruby1.8 ruby1.8 ruby1.8-dev ri ri1.8 rdoc rubygems rake irb libopenssl-ruby libonig-dev libldap-ruby1.8
note: on some system, package libgettext-ruby-util can be needed if you have error `msgmerge' can not be found. while making rake updatepo
sudo gem install rubygems-update sudo /var/lib/gems/1.8/bin/update_rubygems
sudo gem install gettext desert xmpp4r sudo gem install -v=2.3.5 rails
sudo rake gems:install
sudo apt-get install libsqlite3-ruby1.8
sudo apt-get install libpgsql-ruby1.8
sudo apt-get install libmysql-ruby mysql-serverNote : If you need to install the DB gem from sources, you'll need to install some dev tools :
sudo apt-get install gcc make libmysqlclient15-dev
Database parameters must be defined in application's
config/database.yml
This file should look like this example (in the case of a sqlite database):
development: adapter: sqlite3 database: db/tosca-dev.db test: adapter: sqlite3 database: db/tosca-test.db production: adapter: sqlite3 database: db/tosca-prod.db
rake tosca:install
Note : Answer "No" when asked to use default database configuration. Otherwise changes made to the database.yml file will be lost.
With the next command, you can add some example data in your database :rake tosca:generateNote : Check your config/database.yml, you should have this for an sqlite database:
development: adapter: sqlite3 *database: db/tosca-dev.db* test: adapter: sqlite3 *database: db/tosca-dev.db* production: adapter: sqlite3 *database: db/tosca-prod.db*
Test and developement environnements use the same database.
export RAILS_ENV=test
./script/server
It's detailled here : CompleteInstallation
sudo apt-get install libldap-ruby1.8Copy the file config/ldap.yml.sample to config/ldap.yml
cp config/ldap.yml.sample config/ldap.ymlEdit this file to match you configuration
ldap: host: localhost port: 389 binddn: "cn=admin,dc=linagora,dc=lan" bindpw: linagora filter: "(&(objectclass=person)(uid=?))" basedn: "ou=People,dc=linagora,dc=lan" scope: "LDAP::LDAP_SCOPE_ONELEVEL" protocol: 3
We advise to install tosca from the tarball if you are in a production environment.
If you want to see the latest features or want to contribute to tosca, you can use the 'git version' of the installer.
WARNING: when you choose an installation way, you can't change it. The industrialization script of tosca deal with upgrade in a simple way : upgrade a tarball installation to a tarball setup, and a git installation to a git setup.
wget http://redmine.tosca-project.net/attachments/download/40/tosca-0.8.3-full.tar.bz2 tar -xvf tosca-0.8.3-full.tar.bz2
git clone http://git.tosca-project.net/tosca.git tosca
cd path/to/your/tosca/dir
sudo bash script/deploy/install
Give a filename for apache vhost. ex: tosca-prod Where do you want install Tosca ?
/var/www/tosca
Do you want use Apache and mod passenger ? [Y/n]
If you answer "n", you'll be able to test Tosca with webrick web server.
Do you want to run in production mode ? [Y/n]
If fou answer Y or y, the script will setup submodules of tosca (extensions) and you'll run in prodcution mode.
Which database backend does tosca have to use ?For this question:
Do you want Tosca to use a remote MySQL database [y/N] ?
It's recommanded to answer no if you don't know what it means
Do you want to configure automatically apache2 ? [Y/n]If you're a sysadmin, it's advised to skip this part. The script can change some of your configuration files or the whole apache behaviour.
Write the URI base to access Tosca. Example: /tosca -> http://127.0.0.1/tosca
Give a filename for apache vhost. ex: tosca-prod
This script will install Tosca on your system, with all dependencies.
Notice: This installation process has been tested only for :
- Debian (Lenny)
- Ubuntu (Karmic & Lucid)
Press ENTER to continue, Ctrl+C to exit
NOTICE: Log file set.
output: /tmp/tosca-install_201007161451.output
error: /tmp/tosca-install_201007161451.error
Where do you want install Tosca ? /var/www/tosca
- Install Apache webserver ... OK
- Copy Tosca in /var/www/tosca ... OK
- Install Tosca dependencies ... OK
- Update /etc/tosca/tosca.conf ... OK
NOTICE: Log file set.
output: /tmp/tosca-configure_201007161454.output
error: /tmp/tosca-configure_201007161454.error
- Load tosca settings present on the system ... OK
Which database backend does tosca have to use ?
1- sqlite3 (testing/development)
2- MySQL (production)
3- PostgreSQL (production)
1
NOTICE: The sqlite database is located in /var/www/tosca/db/tosca-*.db*
- Update gem repository ... OK
- Install RubyOnRails ... OK
- Unpack and install Tosca gems - Freezing Rails ... OK
- Install Tosca database ... OK
Do you want to configure automatically apache2 ? [Y/n]Y
Write the URI base to access Tosca. Example: /tosca -> http://127.0.0.1/tosca /
- Install Apache configuration ...
Give a filename for apache vhost. ex: tosca-prod tosca-test
OK
Dysfonctionnement bloquant toute utilisation d'une application ou nuisant à la réputation d'un ou plusieurs sites internet.
Ce type de dysfonctionnement doit être traité dans l'urgence et nécessite une forte disponibilité de l'équipe en charge des opérations de maintenance
Il s'agit des incidents qui empêchent l'utilisation totale d'une fonctionnalité
et la poursuite des traitements par tous les utilisateurs, ou de nature à dégrader les données du système.
Il s'agit des incidents qui empêchent l'utilisation partielle d'une sous-fonctionnalité ;
ou d'autres incidents pouvant être rencontrés sur le système en particulier les défauts liés aux interfaces homme-machine.
Concerne toutes les demandes sur les logiciels hors périmètres.
Ils ne sont pas soumis à un engagement de temps contractuel.



Note : Tux Worker Logo was made by Kami and found on CrystalXP .
X First version for Pending Request, with delay feature, accessible for recipients & engineers X First version for Software Cover
First, hello & welcome noob, here's a good place to start.
We use rgettext. We have chosen a technology which is widely used in open source projects.
You can have more information on GetText at Wikipedia and you can install a dedicated editor for it like PoEdit
rake updatepoIt will read the source code & update po files, located in po/, which are basically the source code of the translation. You can edit it with a simple text editor or a dedicated translation tool like poedit.
rake makemoWhich will compile & produce the mo files. Then you can restart Tosca & see the look of your changes.
sudo bash script/deploy/update
wget http://redmine.tosca-project.net/attachments/download/40/tosca-0.8.0-full.tar.bz2 tar -xvf tosca-0.8.0-full.tar.bz2
git clone http://git.tosca-project.net/tosca.git tosca
sudo bash script/deploy/update
Note:
- If you have a file called "i_am_a_tarball" in /config (in your Tosca's instance directory that you've setup), you have a Tosca tarball directory
- If you don't, you have a Tosca git directory
On which Tosca's instance do you want to update the code ?
Type the number corresponding to the instance of Tosca you want to update and press enter.
Note: You wont have to answer to this question if you have setup just one Tosca in your system
wget http://redmine.tosca-project.net/attachments/download/40/tosca-0.8.3-full.tar.bz2
tar -xvf tosca-0.8.3-full.tar.bz2
tosca/
tosca/vendor/
[...]
ls
tosca tosca-0.8.3.tar.bz2
cd tosca/
sudo bash script/deploy/update
This script will install Tosca on your system, with all dependencies.
NOTICE: Log file set.
output: /tmp/tosca-update_201006231042.output
error: /tmp/tosca-update_201006231042.error
Wait please during update
WARNING: If you stop the procedure, your Tosca instance could be corrupt
- Setup new gems needed by Tosca and unpack them ... OK
- Update translation ... OK
- Clear cache ans session ... OK
- Change owner of /var/www/demo ... OK
- Restarting apache gracefully ... OK
Tosca Configuration Succeed !